Conditional loop based on current page
Conditional loop based on current page
Conditional loop based on current page
editor style css and page template with and without sidebar
Very slight one, see below 🙂 $bgimage= get_post_meta( $post->ID, ‘settings_image’, true ); ?> < div style=”<?php echo ‘background-image: url(‘.wp_get_attachment_url( $bgimage ).’)’;?>”>
Custom widget not appearing on front end
This sounds like your theme doesn’t have a margin/padding set on the paragraph. Just add the following CSS to the themes style.css and your paragraphs should then be spaced. p { margin-bottom:20px; }
Flexslider not working for my custom theme WordPress
using theme check plugin to remove waring and errors from my theme
First: You probably did some settings wrong with the slider or the slider is messed up because your pictures get totally skewed by it. About your Problems: 1.: auto is not a valid value for the HTML Attribute “height” for images. Remove it completely from the image tags, and it will be sized “auto”. So, … Read more
In your sidebar array as an example: register_sidebar(array( ‘id’ => ‘footer’, ‘name’ => ‘Footer’, ‘before_widget’ => ‘<div id=”%1$s” class=”widget col-sm-4 %2$s”>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<h4 class=”widgettitle”>’, ‘after_title’ => ‘</h4>’, )); Don’t worry about wrapping the sidebar in a row. Let this do it for you. See, the col-sm-4 (or whatever size, with 4) … Read more
WordPress allows the addition of extra nav menus. Add this to your child themes functions file: register_nav_menus( array( ‘secondary_menu’ => ‘My Second Menu’ ) ); Add this to your header.php file or the file where you want to display your extra nav menu. <nav id=”site-navigation” class=”main-navigation” role=”navigation”> <?php wp_nav_menu( array( ‘theme_location’ => ‘secondary’, ‘menu_class’ => … Read more