‘Dehighlighting’ navigation once clicked

You’re removing the current menu item, and current menu page, however your CSS refers to these: .site-navigation li .current_page_item > a, .site-navigation li .current_page_ancestor > a, .site-navigation li .current-menu-item > a, .site-navigation li .current-menu-ancestor > a .current_page_ancestor and .current-menu-ancestor are not handled by your javascript, but they are styled, hence your problem. You will need … Read more

Displaying External Data – Not Posts

You can hook the content of any post and request data you want through WordPress HTTP API. Like this: add_filter(‘the_content’, ‘my_content_178750’, 1, 99); function my_content_178750($content) { return wp_remote_retrieve_body(wp_remote_get(‘http://example.com’)); } Also there is possibility to check path you’re on and decide what you want to get depending on that.

child index.php does not overwrite parent index.php in twenty fourteen theme

The way you enqueueing your stylesheets are wrong. Someone very ignorant keeps changing my edit in the codex. The way you are doing this loads your child stylesheet twice. I have already done a post on this that you should check out here The correct way is add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ ); function theme_enqueue_styles() { wp_enqueue_style( … Read more

Content alignment in Twenty Fourteen Theme

I recommend a tool like firebug (http://getfirebug.com/). It will give you the precise values and locations of the applicable css-styles in your style.css. If you use the same file in both installations there should be no differences except for different content or different devices.

Display ‘modified date’ in WordPress Twenty Fourteen

Look for the code that displays the post date. It should look something like the following: Posted on: <?php the_time(‘l, F jS, Y’) ?> Now replace it with the following code (slightly modified from Ardamis’ post): Posted on <?php the_time(‘F jS, Y’) ?> <?php $u_time = get_the_time(‘U’); $u_modified_time = get_the_modified_time(‘U’); if ($u_modified_time != $u_time) { … Read more

top primary menu drop down categories not showing

This isn’t necessarily an answer, but you have a Javascript error. // listen for postMessage events from the notifications iframe $( window ).on( ‘message’, function( e ) { var event = ! e.data && e.originalEvent.data ? e.originalEvent : event; if ( event.origin !== ‘https://widgets.wp.com’ ) { return; } var data = ( ‘string’ === typeof … Read more