Add Text above latest posts page / blog

Home Forums Receptar Add Text above latest posts page / blog

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

    webactor
    Participant

    Add Text above latest posts page / blog

    Resolved

    Hey there! Have you noticed this support service is provided FREE of charge?
    If you like the speed and accuracy of resolutions, please consider supporting me with a small donation. Thank you

    Consider a donation →

    Hi there
    Really hope you can help me here.

    How can i add text above latest posts page / blog? (front / main site) Do i have to make a newpage.php file and then set it up there?

    Best regards
    /Kimo

    #20133

    Oliver Juhas
    Keymaster

    Hi Kimo,

    As the theme is full of action hooks, you can display any custom HTML anywhere, basically. Here is code you can use in your child theme‘s functions.php file to display something above posts list on blog page:

    function child_theme_content_top() {
      if ( ! is_home() ) {
        return;
      }
      ?>
      YOUR_CUSTOM_HTML_HERE
      <?php
    }
    add_action( 'tha_content_top', 'child_theme_content_top' );

    Best regards,

    Oliver Juhas
    WebMan Design

    #20134

    webactor
    Participant

    Wauu Oliver
    You’re the man – Supar thanks for the quick reply / solution

    C yaa // Cheers
    /Kimo

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.