Centralise widgets

Support Area Forums Moonrise Centralise widgets

Viewing 7 posts - 1 through 7 (of 7 total)
URL to the page in question: http://client.dev.recipesocial.net/
  • Author
    Posts
  • #28288
    RecipeSocial
    Participant

    Hi Bill,

    I’ve added a new events plugin to the site and ideally would like it to display centrally on the front end of the home page (section #4), so that it matches up with the Gallery heading.

    Is this possible?

    Thanks,
    Christian

    #28293
    Bill Robbins
    Moderator

    Good Morning,

    You can center align the text in that widget. Here’s how:

    1. Go to your theme options page and choose the Advanced tab.
    2. Scroll down to the Custom CSS box and add this:
      
      .widget.tribe-events-list-widget {
      	width: 100%;
      	text-align: center;
      }
      
    3. Update your settings.

    Take care,
    Bill

    #28311
    RecipeSocial
    Participant

    Hi Bill,

    Thanks for getting back to me with the code, much appreciated.

    I’ve added it and it has produced the desire result. However, I’ve also got a gallery (page) on that section too and I think because of that reason, the both aren’t lining up centrally the same. Could I get both pieces of content to line up with each other centrally?

    Thanks,
    Christian.

    #28313
    Bill Robbins
    Moderator

    Good question. The gallery is created by the NextGen gallery plugin and it is set to align to the left in its styling.

    
    #four .ngg-galleryoverview {
    	text-align: center;
    }
    
    #four .ngg-gallery-thumbnail-box {
    	float: none;
    	display: inline-block;
    }
    
    #four .ngg-gallery-thumbnail{
    	float: none;
    	display: inline-block;
    }
    
    #four .widget {
    	margin-left: 0;
    	margin-right: 0;
    }
    

    Not trying to pry here, but is there a particular reason why you went with the NextGen Gallery plugin? It’s kind of a left-over from the era when WordPress didn’t have native image galleries. Unless the current site is already locked into that mess, it’s usually good to avoid it.

    Bill

    #28314
    RecipeSocial
    Participant

    Hi Bill,

    Thanks again for the code, much appreciated. It’s worked a treat! 🙂

    I went for the NextGen gallery plugin as it seemed like the best option and integrates with lots of other cool plugins, in particular http://getfoobox.com/ which is great and has a Google analytics plugin extension.

    Maybe you know of a better gallery solution? If so, please feel free to share.

    Thanks,
    Christian.

    #28315
    Bill Robbins
    Moderator

    Don’t use a plugin for galleries. For the vast majority of users WordPress’ native galleries work great. Plus since they are native they are future proof. As changes are made to WordPress they will always work.

    NextGen is a poorly made, albatross of a plugin. Even the original developers moved on from it.

    #28530
    RecipeSocial
    Participant

    I’d love to not use the NextGen plugin, as it’s is clunky, but it has some essential features which I need. In particular, image proofing for my clients.

    I’ve researched alternatives, but none come close…

    Regards,
    Christian.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Centralise widgets’ is closed to new replies.