nigelmcg
Forum Replies Created
-
Forum: Reviews
In reply to: [WP Catalogue] easy to fill but not to findHi Margzmi
Use the shortcode [wp-catalogue] on a new page to see the Catalogue displayed.Give the new page any name that works for what you are displaying.
Cheers,
NigelForum: Themes and Templates
In reply to: Conditional tag 'is_page_template' not working on my custom pageThe page has the page template declaration at the top of the news.php file instead of the prefix ‘page-‘ in the file name. The declaration provides the Template option in the admin page properties and in the editor it will display as News Page Template – news.php because the system will automatically add that page to the editor.
<?php /** * Template Name: News * created by MCG jan-2016 */ get_header(); ?>Unfortunately, I’ve stomped on the main Loop with my query aimed at the News category, therefore the query doesn’t collect the page ID, Template name or Page name and can’t be used for those conditional tags on the Footer template when loading.
I’m now looking for a way to do the same but using the correct main Loop with a WP_Query within The Loop instead to avoid the possibility of too many SQL requests on the server. The site I’m working on could get very busy.
I’ve looked through the Codex files and can’t work out the best way to make it work.
This is what I have
<?php $query = new WP_Query( 'cat=6'.'&showposts=3'.'&paged='.$paged ); ?> <?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>It works but paging isn’t working…
Forum: Themes and Templates
In reply to: Conditional tag 'is_page_template' not working on my custom pageIt is a template file with a custom query to collect posts from a category called News.
As it happens I’ve been researching the Codex and I found my answer.
Because I’d altered the main Loop with my query the page id wasn’t being collected, but it did collect the category so I’ve changed my conditional tag to match the category instead of the page or template file.
<?php if( is_category( 'news' ) ) { ?> <!-- insert social feeds --> <?php include (TEMPLATEPATH . '/social-feeds.php'); ?> <!-- end social feeds --> <?php } ?>This also stops the archive pages from including the file except of course the News archive..
And just for clarity, the reason the conditional tags are in the footer template is because I want the output to display at the bottom of the content just before the footer and clear of the sidebar.
Thanks Mr Case for showing an interest and hopefully this will help out others.
Forum: Themes and Templates
In reply to: [Fruitful] Responsive Layout Not WorkingYes, YPod, you can replace the first with the second piece of code.. I use Google Chrome but I tested it with IE and it seemed to work with that browser too. Mobile browser’s might respond differently. Couldn’t test my phone because you had Jetpack on.
When you inspect an element on the page you linked using Chrome it shows a 404 error for your Facebook JavaScript. I’m guessing it’s a plugin…
To inspect an element using Chrome you right click on the element on the page you want to view, then click “Inspect Element” a console will appear where the right column shows the CSS for the element that’s highlighted on the main page.
Hopefully Fruitful will get it sorted for you
CheersForum: Themes and Templates
In reply to: [Fruitful] Responsive Layout Not WorkingHi YPod,
Was having a similar problem with a different theme but checked your page out and located this code in the Fruitful Shortcode CSS. It’s on line 1626. Search for .post-content.
.blog_post .post-content, .eleven.columns .blog_post .post-content, .search .blog_post .post-content { width: auto; }Comment out like this
.blog_post .post-content, .eleven.columns .blog_post .post-content, .search .blog_post .post-content { /*width: auto; removed for breaking the responsive layout*/ }On a side note your Facebook .js isn’t loading…
Hope this helps you
Cheers, NigelForum: Plugins
In reply to: [Spiffy Calendar] Subscriber can see Spiffy Calendar in admin barThanks Bev,
Excellent support and highly recommendedCheers,
NigelForum: Plugins
In reply to: [Spiffy Calendar] Subscriber can see Spiffy Calendar in admin barThanks
Cheers,
Nigel