Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #479180

    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

    #479287

    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

    #479325

    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

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How can i filter post (article) title on single page ?’ is closed to new replies.