Hi,
It appears the conditional tag the_title() is, weirdly, also used for hydrating the main menu items. I’m looking for a way to filter my articles title in single pages (removing the inner anchor ).
Any help very welcome
regards
Hey Mborie!
I’m sorry but I’m not sure I understand. Can you send us a link to your page and take a screenshot highlighting what your trying to do?
Cheers!
Elliott
Ok thank’s for answering this so quickly but i’ve found the solution :
I just wanted to filter the <h1> tag on the single article post page. I’ve copied the includes/loop-index.php into my child theme and made a regexp replacement :
<?php $title = preg_replace( “#<h1[^>]+.*?<a[^>]+>(.*)</h1>#”, ‘MyReplacingStrings$1’, $title ); ?>
just before the <?php echo title; ?> round line 150 … And and it work great ;-)
Regards