WordPress.org

Forums

Frantic
[resolved] Totally Blank Template (5 posts)

  1. Brian
    Member
    Posted 2 years ago #

    I am looking to make an absolutely totally blank full-width template, no background, no text, nothing.

    I have created a template that still has background color and header section.

    I would like to have the background on this new template deleted. And I would like to know how to insert a new background img or color for just this one page.

    Thanks to anyone who can help,
    Brian

  2. WPyogi
    Forum Moderator
    Posted 2 years ago #

    If you look at the body tag it has page-specific classes:

    <body class="page page-id-3555 page-template page-template-blank-page-template-php">

    So you can use one of those in the CSS to target just that page:

    body.uniqueclasshere {
       styles here;
    }

    But you REALLY should be using a child theme -- as is all of your changes are going to be erased when the theme is updated! Don't go there.

  3. Brian
    Member
    Posted 2 years ago #

    I'll look up child theme. Never done that. So I'm guessing every website I have should be using child themes for updates to CSS etc. Does having a child theme do anything negative to search rankings, etc?

  4. WPyogi
    Forum Moderator
    Posted 2 years ago #

    Yes, if you are modifying theme files (not theme options), you should be using a child theme. If you are only changing CSS, an alternative is a custom CSS option (in some themes) or plugin - jetpack for example, has that included.

    Won't affect SEO that I know of.

  5. Brian
    Member
    Posted 2 years ago #

    Thanks. I really appreciate it. Looks like I'll be learning a lot about child themes now : )

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic