• I am a newbie. I am using desktop server. Just learning for first time. I added what I think is the simplest loop there is to index.php. Right after doing so, the greeting “Welcome to your site!…” appeared after my generic header text.
    I’d like to know how adding the loop resulted in the appearance of this greeting, and how to edit or hide/delete it.

    Thanks for any help

Viewing 6 replies - 1 through 6 (of 6 total)
  • are we talking tagline?

    If so, from the dashboard:

    Appearance >> Customise >> Site identity

    Thread Starter sense2k

    (@sense2k)

    Hello
    Thanks for replying
    I don’t have my laptop (i’m at work). Poking around, the only place I was able to see that line of text was in the customizer.php which, when I was looking at it, seemed to be read-only. I really want to know how that gets added and how it may be edited or maybe even hidden. I am sure there’s more than one way to do so. My simple site has generic style.css, index.php, header/footer php files.
    as I mentioned, it was only after I added the few “loop” lines in
    that the text showed up. If I remove the loop then it goes away. So where and how is that being added???

    Are you working on a fresh install or a site that has been built already?

    i believe this is the code that’s used to display
    <?php bloginfo('description'); ?>

    Thread Starter sense2k

    (@sense2k)

    Hi
    OK. I looked in https://developer.www.ads-software.com/reference/functions/bloginfo/
    it appears to indicate that the source of this is general-template.php in includes.
    If that is the case, does the Loop automatically reference general-template.php?

    That is the welcome page default content. You have to select a home page in the customizer. Either a Posts page which will show on index.php or a home page. If you go to pages you can edit the content on the default home page…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘What file adds “Welcome to your site!…” and how’ is closed to new replies.