I would like to make the content of pages and posts (using page.php and single.php) to align left instead of center and thereby always match the top left position of content in the masonry grid. I’m messing around with the style.css without finding the solution…. I’m guessing I should remove/adjust some instance(s) of “margin-left: auto; margin-right: auto” in the .entry class?
Thankfully awaiting your answer!
]]>The problem I have is that the page.php file is not being picked up for high-level pages. It works for child pages. But high-level pages are being displayed with index.php (I have no home.php page.)
The site is set up to display a static front page using front-page.php, which works correctly. Blog archive is supposed to display using index.php, which also works correctly.
But my 3 parent pages, which are linked in the “About Menu” in the footer of the page are all displaying incorrectly, using index.php instead of page.php. Child pages such as /about-mdd/interviews/ are displaying correctly using page.php.
Possibly related: any URL like martindenton.com/xyz also displays the index page rather than the 404.php page. Incorrect category urls work correctly showing 404.php.
Would appreciate any help, thanks!
]]>For some reason my page.php file is not being used by ampforwp. I’ve created a folder within my theme called ‘ampforwp’. Inside this folder I have a few page/post templates. The weird thing is that, for example, single.php does work, but for pages the file page.php is not being picked up.
When I try to use a page specific template file (for example: page-mypageslug.php), this also doesn’t work.
Am I missing something here? I read all of the documentation for this plugin, but I can’t figure out what I am missing.
I hope someone can help me with this.
]]>For users, the pages now display correctly. But if I try to view the pages while logged in as an administrator, I received an message saying a critical error had occured. I installed the Query Monitor plugin and now I get the following error:
=================
Fatal error: Uncaught Error: syntax error, unexpected ‘locate_template’ (T_STRING)
in /home/viewwebinfo/public_html/empoweringcoorg/wp-content/themes/Largo-master/page.php on line 1
Call stack:
require_once()
wp-blog-header.php:19
require()
index.php:17
===================
Here’s what’s in my page.php file:
====================
<?php
/**
* The Template for displaying all pages.
*/
locate_template( 'single.php', true );
====================
Thanks for any help you can provide.
]]>Does anyone know what the problem could be?
]]>I’m using a custom page as “Events template” (so in Display settings I’ve choosed this page as “Events template”), this page is just the page.php from my them with few changes.
It seems that Events Calendar ignore this settings and show events using the default events template.
If I choose the “Default Page Template” option it works fine, but if I choose another template it load the “Default events template”.
Just to be sure that the issue was not related to my changes, I’ve created another template by copying the page.php from my theme and add just an HTML comment. Also in this case if I choose this new template, it will be ignored and the default events template is loaded instead.
If I disable “Use updated calendar designs” my template works fine.
Since I need this little changes between my page template and this template, can you suggest me how I can fix this issue?
Any suggestion on how debug the problem is also welcome!
Thanks for your help,
Fabio
function travelafrique_woocommerce_support(){
add_theme_support('woocommerce');
}
add_action('after_setup_theme', 'travelafrique_woocommerce_support');
I also can’t override template files by copying WooCommerce Template files into my Themes folder. I also know that the correct way to that would be by copying the necessary files into the following folder wp-content/themes/MYTHEME/woocommerce/templates
I’ve spent already two days trying to fix, this but I can’t see, what has gone wrong. Any help would be appreciated.
]]>can anybody please tell me if its possible to add pagination with this plugin in one particular place like my posts grid section?
any help would be well appreciated.
kind regards.
こちらのテンプレート(page-xxxx.php)で表示している固定ページでスタイルやligntboxが動きません。
テンプレートでは違うヘッダーフッターを読み込んでいます。
<?php
/*
Template Name: ブライダル専用のテンプレート
*/
?>
<?php get_header(‘xxxx’); ?>
——– main contents ——–
<?php get_footer(‘xxxx’); ?>
こちらのテンプレート(index.php)では動作をします。
<?php get_header(); ?>
——– main contents ——–
<?php get_footer(); ?>
なにか問題はありますか?
]]>