Sidebar on single.php not showing up

It seems that the sidebar checks whether or not the Post Layout is set to “content”. If you remove that check, it should operate the way the main index page does. Editing / commenting out the following lines in sidebar.php should solve the problem (if not, get you closer): Find: if ( ‘content’ != $current_layout … Read more

Wrap posts p tags in div

You need to add it to a JS file and then enqueue it in your functions.php jQuery(document).ready(function($){ $(‘p’).wrap(‘<div class=”post-txt” />’); }); If you already have a js file, you can add it to that file and you’re done. Else, save the above snippet in a new file. Put that file in a folder called js … Read more

How to create Page templates for showing Blog posts in different layouts?

I wouldn’t use custom page templates merely for changing the layout of the blog posts index. Using page templates for the blog posts index bypasses the core handling for display of the blog posts index (which per the template hierarchy uses either home.php or index.php to render). Edit I never…said that I want to change … Read more

How to modify display of blog listing page?

Otherwise as suggested, this has nothing to do with template hierarchy. These templates that you are mentioning is purely for use with post formats. I qoute from the codex Post Formats is a theme feature introduced with Version 3.1. A Post Format is a piece of meta information that can be used by a theme … Read more

WordPress loop is not working

custom-header.php <!– Start Top Header affix nav–> <div id=”affix” data-spy=”affix” data-offset-top=”94″ data-offset-bottom=”0″> <!– **** START – NAVBAR SCROLLSPY FIX DO NOT REMOVE **** –> <div id=”top” class=”hide”></div> <!– **** END – NAVBAR SCROLLSPY FIX DO NOT REMOVE **** –> <!– **** START – NAV **** –> <nav class=”navbar navbar-default navbar-shrink”> <div class=”container”> <div class=”navbar-header”> <!– … Read more

How can I make my Blog category unindexed in Google?

Add the <meta name=”robots” content=”noindex”> meta tag within your <head>. Then look into is_category() to add it specifically to your category pages. Or alternatively, you can check if $cat_id is available: $cat_id = get_query_var(‘cat’); If it is available, then it is a category page. EDIT Just add it in an IF statement: if (is_category()){ <meta … Read more