New Topic

make content on sidebar left template float to right

Home › Forum › Customization › make content on sidebar left template float to right

This topic contains 3 replies, has 2 voices, and was last updated by  StartupWP 2 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2834

    darronthedragon
    Participant

    Hi!

    I use the sidebar left template for posts, hoping to use the the left sidebar for widgets (which I want to control so as to appear only on posts) I’m using a widget called Disable for this. As far as I can see the CSS has provision to make the content float to the right on the sidebar left templates. However, it keeps getting overridden by this CSS line:

    #content{width:60%;padding:4%;float:left}

    So that the post appears in the centre of the page and the widgets are pushed to the bottom.

    If I try to contradict this CSS line the whole site gets messed up.

    The website is http://celtica-kitchens.co.uk

    I’m using the StartWP Pro theme on WP version 4.5. Everything’s up to date. I have disabled all the plug-ins – it has made no difference. My browser is Iceweasel running on Ubuntu.

    I’ve really tried to fix this – have fixed many other issues – but not this one. Many thanks!

    #2836

    StartupWP
    Keymaster

    Looking at:

    http://celtica-kitchens.co.uk/concept-kitchen-in-wanstead-work-in-progress/

    I can see that the Sidebar Left template is working fine. The problem only occurs when you introduce the Disable for This plugin?

    I recommend trying these alternatives:

    https://wordpress.org/plugins/dynamic-widgets/

    or

    https://wordpress.org/plugins/widget-logic/

    #2838

    darronthedragon
    Participant

    Thank you for your very prompt reply.

    I had already deactivated the Widget disable. In fact, I realised that as long as I only put widgets in the Widget Sidebar (the first option) they would only appear in posts where I used a Sidebar Left template – or at least that’s what seems to be the case. Therefore no plugin needed.

    But I still hadn’t cured the problem of this rule

    #content{width:60%;padding:4%;float:left}

    jumping in and forcing a left float when I wanted a right float, despite targetting the float on the required post template. Everytime I inspected the code there it was.

    I’ve fixed it now by changing the overarching rule to float:right and the page templates to float:left. So far, it’s OK – don’t seem to have broken the Internet. :-)

    #2840

    StartupWP
    Keymaster

    Glad you were able to solve it.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.