Forum Replies Created
-
AuthorPosts
-
August 9, 2014 at 2:53 pm in reply to: Social media buttons no longer showing number after dodgy plug-in installed #117991Jim ColellaMember
Perhaps I should have mentioned at the beginning that my social share buttons came from JetPack. In any case, I also told JetPack support, who helped indirectly by tracking down & letting me know the exact code causing the problem. My hunch on it being js was correct. And I then tracked down the plugin using that exact line of js, and deleted it. Social share buttons with the "icons + text" working -- just as they were before. Problem solved.
August 7, 2014 at 3:19 pm in reply to: Social media buttons no longer showing number after dodgy plug-in installed #117648Jim ColellaMemberIt is possible. They were working before, as mentioned above in my first post.
August 7, 2014 at 3:11 pm in reply to: Social media buttons no longer showing number after dodgy plug-in installed #117645Jim ColellaMemberHi. Yes, JetPack is installed, as that's how I have the share buttons on my site. The default one when I installed happened to be the "icon only" (round icon) out of the four options, but I went for "icon + text" as mentioned. Since my post above, I tried uninstalling and reinstalling JetPack -- but then had a whole new problem as the JetPack plugin could no longer access my site. I've been in touch with JetPack support on that, and that one's resolved. JetPack is installed again. But those numbers are still not appearing in "icon + text" mode, only on "official buttons" mode. Any suggestions?
Jim ColellaMemberHi Susan,
Actually, I'd forgotten I'd posted this question. To be honest, the concept I had in mind wasn't fully thought through. In other words, I decided to ditch the idea and work in another direction, so please feel free to close this question if you prefer.
Jim ColellaMemberThanks Lauren. I've just put the code in, and it works a treat! Thanks so much.
Jim ColellaMemberI do apologise, Lauren. You're right. I checked the link in a rush on my phone, and went by the title at the top. Although it does say "Post Navigation" the code does refer to page navigation, as you say. A bit of a misleading title, but totally my mistake. Sorry, again.
Jim ColellaMemberSorry, but nope. I'm after editing the PAGE navigation, not POST, as that link refers to.
Jim ColellaMemberOkay, thanks. Hope you find it!
Jim ColellaMemberAlthough, on second thoughts, I did come across this on your site:
http://wpsites.net/web-design/conditional-archive-page-navigation-for-any-theme/
I skipped it before because of the "conditional" subject, thinking it wasn't relevant for my purposes. But looking at it again, there may be something relevant. Is it relevant, Brad? If so, which part can I take and use, as I only want to modify the Next/Previous text, as mentioned. (By the way, I also have a functions amendment that is taking care of the text on my POST navigation. I mention, in case there's any overlap between code for post and PAGE navigation.)
Thanks again.
Jim ColellaMemberI also looked on your site Brad (one of my first stops for stuff like this. Thanks for a great site by the way!) but I couldn't find anything either.
May 22, 2014 at 7:53 am in reply to: category menu highlighting for single posts in Eleven40 Pro #106314Jim ColellaMemberSolved! I found a far more recent piece of code here (dated Feb. 2014).
For anyone struggling with the same issue, add this to your functions.php:
function wpse_134409_current_category_class($classes, $item) {
if (
is_single()
&& 'category' === $item->object
&& in_array($item->object_id, wp_get_post_categories($GLOBALS['post']->ID))
)
$classes[] = 'current-category';return $classes;
} // function wpse_134409_current_category_classadd_filter('nav_menu_css_class', 'wpse_134409_current_category_class', 10, 2);
And the necessary css selector in Eleven40 Pro:
.nav-primary .current-category a {
//*your styling here
}...which wasn't from the site linked to above, but after some fumbling around, I found it. Hope that helps any others lost down this path.
May 22, 2014 at 1:23 am in reply to: category menu highlighting for single posts in Eleven40 Pro #106279Jim ColellaMemberThanks Brad. Everything I've read on this issue is 5 (or even more) years old. I had a feeling I'd stumbled on a long-known-but-as-yet-unsolved WordPress problem. To echo comments seen elsewhere (others sites), it would seem perfectly logical to want a category-based URL to activate a category-based menu. I was just hoping someone here might have found a way within the Genesis framework. I'll try as you've suggested (with fingers crossed for a solution from any passers-by here!). By the way, the site I grabbed the code from is using a Genesis theme -- so with the "G" favicon appearing in the browser tab, I (oops) mistook it to be a site providing tips for Genesis. Lesson learned! I'll certainly post back here if I ever solve this. Thanks again.
May 21, 2014 at 2:33 pm in reply to: category menu highlighting for single posts in Eleven40 Pro #106217Jim ColellaMemberThanks for the feedback Brad.
I'll try again: I have a category-based menu in the primary navigation bar in Eleven40 Pro. When each menu item is selected it is highlighted, or perhaps I should say "active". But when single posts are selected, they do not "activate" the corresponding menu item. In other words, the category-based URL doesn't highlight in the menu.
For example, click on "Hot Topic" in the primary navigation bar, and it's active/highlighted, like so:
But when a URL within that category is selected (as a single post), the corresponding menu item is not active/highlighted:
The functions code I used above was copied straight in from the above-mentioned article (Dynamic category menu highlighting for single posts). According tho the comments below it, it seems to work fine for others-- although, maybe I accidentally messed with it.
In any case, if that code isn't working/is wrong, what do I need to add to my functions.php? And also, what should I put in my child theme css?
Sorry for the dumbass qu's. I'm fine with using css -- but functions.php is all new to me.
I hope that makes better sense. And wasn't too long.
-
AuthorPosts