interesting. I just switched to twenty twelve and disabled all other plugins and put the filter in functions.php but no luck.
also, I set a breakpoint inside the callback but it’s not stopping so for some reason the filter isn’t being called
so, this is a genesis child theme. I now installed the genesis connect templates in the child theme, and noticed that the title actually does use apply_filters('the_title'... but it’s missing the $id argument
look at line 254 of template-loader.php, there should be an $id parameter.
So now I have to have a different callback for the woocommerce pages.
I still don’t know how to apply the filter to only the main title on the page instead of all the nav menu items and the product titles on the shop page
this is getting much more involved that I expected.
I am not familiar with Genesis so I don’t know how they have setup their filters but regardless of that, the filter you’re using in the code you provided is already specific to WC so it shouldn’t affect your menu items.
The test I did which works fine was on the default 2012 theme.
ok, so turns out the Genesis Connect plugin templates are in need of an update for Woocommerce 2.0
I managed to update them on my install and it seems to be ok for now. I’ll do some more testing and report back, in case someone else has the same issue
thanks for your help!
Viewing 11 replies - 1 through 11 (of 11 total)
The topic ‘wrap shop title with span’ is closed to new replies.