• I am revamping my photography blogsite. I want to make my home page different to the rest of the site, ie. remove the sidebar. That I know how to do but I do not know how to extend the width of that page to the full size. My site is https://kathiesphotos.com/.

    Can anyone assist with a suggestion please?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Best way is to create a template and use that for your pages that you want full width

    You will find instructions here

    https://codex.www.ads-software.com/Templates

    Thread Starter proverbs31woman

    (@proverbs31woman)

    Thanks. I’ve looked in there but could really see what I’m supposed to be looking for. I’ve created the page but now you’re saying I have to create a template? Not sure how they differ but I guess I have a lot of reading to do to find out.

    If you go on one of your pages in admin edit on right you will see Page Attribute and a drop down menu as is you may be using the default template that came with the theme if you create a full width template it will show there and you choose what template you want to use for the page.

    Thread Starter proverbs31woman

    (@proverbs31woman)

    Sorry, I probably haven’t made myself clear. I have created a page that is specifically for the home page. What I don’t know or understand is how to widen that page as I’ve removed the sidebar from that page.

    So I don’t know how to make the home.php that I’ve created into a full width template. If you look at the link I gave you’ll see what I mean.

    In your style.css your content code that 625 wide same width you using for you home page so if you widen that you will other pages that have sidebar.

    so you will need add a another content code for full width in style.css.

    I see you using pressplay theme I will install on my test site and see if I can help you with getting full width template.

    Thread Starter proverbs31woman

    (@proverbs31woman)

    Thank you govpatel, I really do appreciate it.

    Ok I had to search for where to make the change as all themes designed differently.

    On your home page use the template that has
    No sidebar and publish

    then

    In Appearance—>editor on right click on header.php
    you will see code scroll down

    look for this lines

    <?php if (is_page_template('no-sidebar.php')){ ?>
    	<div id="content" style="width:auto;">

    change auto to the width you want somthing like 940px or more if you want.

    In Appearance theme options you have way to stretch or have fixed so select stretch

    You can see same theme on my test site here https://govpatel.com it is stretch and 950px

    Thread Starter proverbs31woman

    (@proverbs31woman)

    Fantastic and thank you so much. Really appreciate your help.

    You are welcome

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Extend home page to full width’ is closed to new replies.