Support » Themes and Templates » Twentyseventeen – How to get sidebar on pages?

  • Resolved hansbeen

    (@hansbeen)


    The sidebar only shows up on posts, and not on pages. No idea what they were thinking when they done that. How can I get it on pages?

    • This topic was modified 4 years, 12 months ago by hansbeen.
Viewing 14 replies - 16 through 29 (of 29 total)
  • I have tried to customize my child theme according to these instructions. Unfortunately my side bar is actually below the page content, not on the side. hansbeen, the sidebar layout on your site at http://kirtan.nu/ is exactly how I would like to get mine to look like. Could you post your style.css code so I can see how it fits in it’s entirety?

    @mropp: By widgets settings page, i mean to say Appearance->Widgets page in admin panel.
    Also, would you mind to share your website link where i can see this issue?

    @tmoore41: Please share your website link

    Thread Starter hansbeen

    (@hansbeen)

    @tmoore41
    Not in style.css, but in page.php, functions.php and front-page.php in the child theme, like @swayamtejwani in the first 2 responses to this topc

    • This reply was modified 4 years, 11 months ago by hansbeen.
    Thread Starter hansbeen

    (@hansbeen)

    @swayamtejwani
    I put the padding left and right at 0, now the frontpage text-space is equal to the normal pages.
    Can it harm to put the paddings at 0?

    .twentyseventeen-front-page .panel-content .wrap{
    padding-left: 0;
    padding-right: 0;
    }

    • This reply was modified 4 years, 11 months ago by hansbeen.

    Hi @hansbeen,

    I dont see any problem with padding:0, and it will only take effect on home page only, as we have class .twentyseventeen-front-page there.

    Thanks,
    Swayam

    Thread Starter hansbeen

    (@hansbeen)

    Thanx again swayam.tejwani, it works fine now, thanx to you. I close the topic now, as I got all the answers on my questions ๐Ÿ™‚

    @swayam.tejwani,
    Here you can see my Childtheme-Files:
    https://github.com/migro004/wpProblems.git

    are these files all correct?

    I will send you the link to my website via pm.

    Thread Starter hansbeen

    (@hansbeen)

    still one more question: how can I reduce the whitespace on the left of the text-block?

    Do you mean the left padding of page ? if yes then use below code,

    
    .twentyseventeen-front-page #content > .wrap{
     padding-left: 1em;
    }
    

    this will only affect left padding on home page, use “padding-right” for evenly spaced from both side.

    Thread Starter hansbeen

    (@hansbeen)

    looks like no difference with the former changes you suggested. It looks good on mobile, but to much white for me on the sides on the computer. Looks like the theme width of the overall text area is maximized already, as the menu and header text is the same width. If I increase the width of the window on my browser only the header-picture goes wider, text area stays same everywhere and more white comes left and right. Can I increase the overall width of the text area (or perhaps the theme width on the front page and pages for computer only?
    Thank you for all your help ๐Ÿ™‚

    Thread Starter hansbeen

    (@hansbeen)

    some more: how to reduce the white-space between the menu and page name on normal pages/posts?
    how to reduce the white-space between the page name and text area on front-page and pages/posts?

    I reduced the text size on pages, does the text of the menu bar goes along with that? Or do I have to reduce that manually also?

    • This reply was modified 4 years, 11 months ago by hansbeen.
    Thread Starter hansbeen

    (@hansbeen)

    I used .wrap { max-width: 1150px; }
    and it seemes to work for the width

    Thread Starter hansbeen

    (@hansbeen)

    Dear swayam.tejwani. At last I decided to remove the sidebar from the front-page, as it interferes with the theme options on the front page. But now the text my frontpage keeps behaving like ther IS a sidebar. Look for yourself at http://beenhakkers.nl
    Any thought on this one?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Dear swayam.tejwani. At last I decided to remove the sidebar from the front-page, as it interferes with the theme options on the front page. But now the text my frontpage keeps behaving like ther IS a sidebar. Look for yourself at http://beenhakkers.nl
    Any thought on this one?

    No point having this conversation twice: https://wordpress.org/support/topic/front-page-text-keeps-behaving-like-sidebar-was-there/

Viewing 14 replies - 16 through 29 (of 29 total)
  • The topic ‘Twentyseventeen – How to get sidebar on pages?’ is closed to new replies.