Where is definied the theme location for the main menu in a WordPress template?

Menu locations are defined in functions.php You can read the codex for more information on how to define menu locations in functions.php Register Menus Firstly, in your theme’s functions.php, you need to write a function to register the names of your menus. (This is how they will appear in the Appearance -> Menus admin screen.) … Read more

Publish pages/posts as HTML?

wget –mirror as part of a cron job may do what you need. The lack of dynamic content will give the following issues: comment support (which I delegate to disqus) search support (which can be delegated to Google site search, though I haven’t implemented that myself) delete of posts no longer work your permalinks should … Read more

Why html tags are being appended to my pictures?

Sometimes, WordPress likes wrapping <img … tags with extra HTML. You could try something like as listed on http://css-tricks.com/snippets/wordpress/remove-paragraph-tags-from-around-images/. In your theme’s functions.php file, add the following lines of code near the top: function filter_ptags_on_images($content){ return preg_replace(‘/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(<\/a>)?\s*<\/p>/iU’, ‘\1\2\3’, $content); } add_filter(‘the_content’, ‘filter_ptags_on_images’);

Add custom html to nav_menu

SOLVED>>>> I was able to add the button to the item_output variable. Basically I grabbed a walker class snippet and added the html to it. $item_output .= ‘<button class=”toggleExpand”><i class=”fa fa-arrow-circle-right”></i></button><a’. $attributes .’>’;

Header has extra HTML block at top before my code

I am really not sure what’s causing this. Can you try with a minimal content in header.php? Something like this and see if the problem occurs? <!doctype html> <html <?php language_attributes(); ?>> <head> <meta charset=”<?php bloginfo( ‘charset’ ); ?>”> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> And, meta tags doesn’t … Read more

Contact Form 7 – Give each checkbox a class?

with jquery in footer.php jQuery(document).ready(function($){ $(‘.wpcft-form-control div.checkbox’).addClass(‘col-4’); } or via css (you will have to adjust for various screen resolution and make some test) <style> .wpcft-form-control div.checkbox{width:33%;max-width:33%;float:left} </style> But I think you can create separate n separate checkboxes and wrap them in a <div class=”col-4″>[checkbox checkbox-x “option1″]</div> <div class=”col-4”>[checkbox checkbox-x “option2″]</div> <div class=”col-4”>[checkbox checkbox-x “option3”]</div> … Read more