WordPress.org

Ready to get started?Download WordPress

Forums

Text is not showing up on page? (19 posts)

  1. jthel24
    Member
    Posted 1 year ago #

    Hello-

    We would like a static text/writing on our blog page above all our posts, I try editing the page and updating it where it shows the static text on page edit - yet doesn't show up on our website? Any thoughts?

    saveourschoolstoday.org

    Thank you!

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    This is probably best achieved by adding the text to the very end of your child theme's header.php template file.

  3. jthel24
    Member
    Posted 1 year ago #

    If I add it to the header.php will it appear on all pages? I only wish for the text to appear on our blog page.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Try something like:

    <?php if( is_home() ):?>
    [ add text here ]
    <?php endif;?>
  5. jthel24
    Member
    Posted 1 year ago #

    Didn't pop up anywhere?

  6. jthel24
    Member
    Posted 1 year ago #

    Are you able/allowed to have static text on the blog page? We just really want to convey the message to our donors that we try and be as transparent as possible with them as possible.

  7. esmi
    Forum Moderator
    Posted 1 year ago #

    Yes - you can do whatever you want if you are using a custom or child theme. WordPress does not impose any limitations. Are you perhaps using a caching plugin?

  8. jthel24
    Member
    Posted 1 year ago #

    Yes. It look like WP Super Cache...

  9. esmi
    Forum Moderator
    Posted 1 year ago #

    Try deactivating it (as per the plugin's documentation) or flushing the cache.

  10. jthel24
    Member
    Posted 1 year ago #

    K. Will this tamper with any of my other work on the site (sorry, still a newby)?

  11. jthel24
    Member
    Posted 1 year ago #

    PS - How do I save all my files

    Thank you for all your patience :)

  12. esmi
    Forum Moderator
    Posted 1 year ago #

    Nope.

  13. jthel24
    Member
    Posted 1 year ago #

    Still didn't work, even after I deactivated the Cache - not sure what's going on.

  14. esmi
    Forum Moderator
    Posted 1 year ago #

    Try:

    <?php if( is_home() || is_front_page() ):?>
    [ add text here ]
    <?php endif;?>
  15. jthel24
    Member
    Posted 1 year ago #

    The blogs not the front page...

  16. esmi
    Forum Moderator
    Posted 1 year ago #

    I think you need to clarify exactly what you mean by "the blog page".

  17. jthel24
    Member
    Posted 1 year ago #

    For our site we have a static front page, and then a page for our posts entitled blog. This is the page I would like the static text on, above all the posts.

  18. jthel24
    Member
    Posted 1 year ago #

    Sorry for any confusion.

  19. esmi
    Forum Moderator
    Posted 1 year ago #

    Then the first code block I gave will work.

Topic Closed

This topic has been closed to new replies.

About this Topic