• At the bottom of canyoningworldwide.com there is a div/container(?) that says:

    “Home
    Welcome to your site! This is your homepage, which is what most visitors will see when they come to your site for the first time.”

    I’m trying to figure out how to delete this. I’ve gone through all the theme files in the editor section and I can’t seem to find it, or even the directory where I can edit the homepage.

    I’ve contacted technical support for this theme (Astra), but other than suggesting it might be from a page-builder (which makes no sense to me) they were little help.

    Can anyone help with this? Thank you.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • I was involved in reviewing that theme, and I just checked it again. The theme does not have that text in it. Themes in the WP repository should not have text like that, which we call “dummy content”, and any instructional content should be shown only to the admin (not visitors).
    So, like they said, it’s coming from somewhere else, probably a plugin you have.

    Moderator bcworkz

    (@bcworkz)

    A bit of a wild guess, but try following this link and see if you can edit/delete the content: https://canyoningworldwide.com/wp-admin/post.php?post=8&action=edit

    Assuming your WP installation is in public root. If not, the path will need adjustment. The main point is to try to edit post ID 8 (it’s apparently actually a WP page, not a post, but edit links call it a “post” anyway).

    Thread Starter claxius

    (@claxius)

    Thank you both for the replies. Yes, it was a WP page. Duh on me!

    However, now that I was able to delete the text and edit the homepage, can anyone take a look at my page (canyoningworldwide.com) and tell me how to:

    1.) raise and center the ‘home’ page/div/container so it’s just under the header
    2.) delete the word ‘home’

    Thank you very much.

    @joy – do you know which theme file edits the homepage? Or do I just edit it through the WP page titled ‘home’?

    Thanks for the help.

    Moderator bcworkz

    (@bcworkz)

    Try adding the following to the Additional CSS panel of the customizer:
    .home #primary { margin: 0.7em 0; }
    You may change the 0.7em part to adjust the grey background gap at the top. The value also affects the bottom gap at 1/3 the distance.

    Tip: If you learn to use your browser’s CSS inspector tool, you may be able to figure out things like this yourself ??

    Your Astra theme apparently uses the page.php template for your home page and all WP pages. The “Home” appears to be the arbitrary title for the page applied by the theme. It can be suppressed with the ‘astra_the_default_home_page_title’ filter. To add your own filter and protect it from theme updates, you should create a child theme or custom plugin to contain your filter code. Either sounds ominous, but are in fact fairly simple to create.

    The filter code is simple:

    // suppress 'Home' title on home page
    add_filter('astra_the_default_home_page_title', '__return_empty_string');

    It can go in functions.php of a child theme or main PHP file of a custom plugin. You can place it in functions.php of Astra, but it will disappear when the theme is updated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Deleting stock div/content from homepage’ is closed to new replies.