WordPress.org

Ready to get started?Download WordPress

Forums

Slideshow
[resolved] Slideshow off centre in widget (10 posts)

  1. pillboxhunter
    Member
    Posted 1 year ago #

  2. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    On line 1520 of your theme's stylesheet, there's a CSS rule that sets the anchor tags that wrap the images to display as an 'inline-block'. This shifts the image to the left, as the slideshow expects all anchor tags to have an 'inline' display value.

    Lines 1519 through 1524 or shown below.

    #widgets a {
    	display: inline-block; /* Change this to 'display: inline;'. */
    	margin: 0;
    	padding: 0;
    	text-decoration: none;
    }
  3. pillboxhunter
    Member
    Posted 1 year ago #

    Crikey that was fast - and effective thanks.
    Now how do I get the widget title to centre above the picture?
    Cheers
    Colin

  4. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    The title is generated using the code defined by your theme. This means that when you change the slideshow's title to center above the widget, you'll change this for all widgets on your website.

    Lines 1644 through 1653 of your theme's stylesheet style the titles of your widgets.

    .widget-title,
    .widget-title-home h3 {
    	display: block;
    	font-size: 24px;
    	font-weight: 700;
    	line-height: 23px;
    	margin: 0;
    	padding: 0 0 20px 0;
    	text-align: left; /* Change this to 'text-align: center;' */
    }
  5. pillboxhunter
    Member
    Posted 1 year ago #

    Many thanks for the speedy response. That has done the trick - I was almost there - hadn't scrolled down far enough!
    Cheers

  6. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    Great! You're welcome!

  7. Julie Thomspon
    Member
    Posted 1 year ago #

    My slideshow is off centre slightly how do I adjust this. Thanks Julie

  8. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    The slideshow may be affected by a setting in your theme. Could I perhaps see your website?

  9. Julie Thomspon
    Member
    Posted 1 year ago #

    Unfortunately Stefan I am testing these changes out in wamp, so I haven't uploaded them yet.

  10. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    I'm sorry, I can't provide much help in that case. You may however want to take a look at your theme's 'margin' and 'padding' style values. These can make the slideshow look like it's not centered.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags