wp_enqueue_script() not working

The social network button you posted comes in two distinct parts. First, the button itself is defined by the anchor tag. <a href=”http://svejo.net/submit/?url=[your url]” data-url=”[your url]” data-type=”compact” id=”svejo-button”>Add in Svejo</a> Then, presumably the script replaced that button with an iframe or something similar so you don’t have to send your users elsewhere to get it … Read more

Conditional custom menu?

I do not believe a plugin would be needed for this. You could add a class to the menu item (enable the class field under Screen Options when you are editing the menu item). Also be sure that you have the body_class() function applied to your body tag. Then you can do: .your-menu-item-class { display: … Read more

How to apply the ‘current_page_item’ class to an archive page in `wp_list_pages()`?

You can use the following filter: add_filter(‘wp_list_pages’, ‘foo_bar’); function foo_bar($html){ //Create a regex pattern to identify the LI element with preg_match //Create another pattern to identify the class attr and alter it with preg_replace return $html; } As I’m not familiar with the exact elements you are working with, I can’t write up a regex … Read more