WordPress Footer Widget Processing

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

Elegant way to signify inheritance and relationship between posts

Using the Posts 2 Posts Module which is still being developed just no support is being offered except through the git fork. How to use it. function my_connection_types() { p2p_register_connection_type( array( ‘name’ => ‘posts_to_pages’, ‘from’ => ‘post_type_1’, ‘to’ => ‘post_type_2’, ‘cardinality’ => ‘one-to-many’ ) ); } add_action( ‘p2p_init’, ‘my_connection_types’ ); The above example will create … Read more

Navigation Menu Rendering Issue on Windows 10

Your ‘ul’ element is set to have width of 1000px, and last child ‘li’ element is breaking on new line on some systems because there is not enough space for all elements in one line (one some systems due to font rendering, percentage calculations, etc..) You could make ‘ul’ element 100% wide, and center inner … Read more

hide/show a div in wordpress

Detecting index.php specifically may not be the best option because this template file is used in many cases in WordPress. Eventually, all pages will fall back to using index.php if no other template file is associated with this page. So instead of targeting index.php, get familiar with template hierarchy and try to use conditional tags, … Read more

WordPress displays widgets out of whack

WordPress isn’t adding anything that’s messing with it. The problem is that on Ontraport you placed it at the very top in a full-width div. On your WordPress site you placed it in the content area, which is not full width. So the left edge of where it appears is not on the edge of … Read more

Bootstrap News: Image Modifciation

You would have to add the category via PHP on top of the image. First find the PHP template(s) where your page is rendered. This could be archive.php for the overview. For single posts this is usually single.php, or content-single-post.php. It depends on your theme. Then you find where the post thumbnail is being rendered, … Read more