• Resolved Brian

    (@gophumek)


    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    Thread Starter Brian

    (@gophumek)

    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?

    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.

    Thread Starter Brian

    (@gophumek)

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Totally Blank Template’ is closed to new replies.