• Is it possible to remove the sidebar from this theme?
    (I do not want the search, archives or anything there)
    Only content please.

    (I removed this on static pages but I also want to remove it on the Front/homepage)

    Is it possible to remove the Author, Date and category stamp from the posts?
    I don’t want this to show.

    /Jocce

    • This topic was modified 6 years, 10 months ago by Jocce.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Jocce,
    You might want to consider creating a child theme.
    Copy the files page.php and single.php and possibly also index.php in there and remove the line
    <?php get_sidebar(); ?> To completely remove the sidebar. Also you can remove the <div class="post-meta">....</div> See here lines 23 til 35
    in single.php and maybe also in index.php.

    A different approach which is a little more easy but less elegant would be to place an empty text widget in the sidebar to get rid of it. And hiding the author with custom css placed in the customizer:
    .post-meta {display: none !important;}

    • This reply was modified 6 years, 9 months ago by Bianca.
    Thread Starter Jocce

    (@jocce)

    Thank you @bianca205 this helped. Almost at least ??

    The sidebar is removed, but the content is not centered. How do I fix this?

    /Jocce

    Hi again,
    Apply the following css:
    .content {float: none; margin-left: auto; margin-right: auto;}

    If you don’t want this applied to the pages as well use this instead:
    .single .content, .home .content {float: none; margin-left: auto; margin-right: auto;}

    Thread Starter Jocce

    (@jocce)

    @bianca205
    Wow, thank you, such a quick response!

    Lifesaver! ??

    /Jocce

    Thread Starter Jocce

    (@jocce)

    @bianca205

    I saw now that is it actually not removed. It is just at the bottom page.

    Please see:
    https://svenco.se/?cmp_bypass=svenconew

    Scroll down and you will see it…
    How do I remove Search, Categories etc completely?

    It is actually also visible on static pages?

    /Jocce

    Hi Jocce. I just read your reply.

    How do I remove Search, Categories etc completely?

    Well it depends. Which steps did you previously take to remove the sidebar (of the ones I mentioned in my earlier post)?
    I can see the parent theme (the actual lovecraft theme) last version is active instead of a child theme. If you removed the sidebar straight in the parent theme then it’s likely that it came back after a theme update (from which I know there have been several last couple of months). If this is the case, it’s better to create a child theme. That’s the solid method to remove the sidebar.

    If you don’t want to go with that route there is a simpeler workaround which does not really remove the sidebar but hides it instead. Add this to the customizer css:

    .sidebar {display: none !important;}

    Thread Starter Jocce

    (@jocce)

    Thak you @bianca! This worked!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Remove Sidebar and Date/authorstamp?’ is closed to new replies.