• Resolved samuru

    (@samuru)


    I have Ignite theme installed. Just got my wordpress site transferred from wordpress.com to here, www.remarpro.com The posts were already done, so I imported everything over.

    The images were ALL centered, but now they are all left centered. Of course, I checked the post and made sure it was centered, even the css code said “align center” so I’m not sure why it keeps moving it to the left? Anyway to fix this? Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Congrats on making the switch!

    Could you share a link to your site here, or send it to me at support AT competethemes.com? I’ll need to take a look to know exactly what’s going on.

    Thread Starter samuru

    (@samuru)

    Well, I changed the theme already but I will put it back so you can check it out:

    gamingandgod.com

    Thread Starter samuru

    (@samuru)

    I noticed that it only does it from the posts I moved over from my previous blog on wordpress.com I just published a new post, and the alignment was fine…so that’s odd. How can I fix it for my old posts? I tried putting the image again, like deleting the old one and putting it fresh but it did nothing.

    Theme Author Ben Sibley

    (@bensibley)

    Okay thanks, I see the problem now. There are two ways to get the images centered:

    You could “unlink” the images. Right now they are linking to their source page. The problem is that the <a> tag is restricting the image and now allowing it to center.

    Alternatively, if you want to keep your images linked, you’ll need to add “display: block” styling to your image links like this:

    <a style="display: block" href="https://gamingandgod.com/wp-content/uploads/2014/06/retro-video-game-wallpapers-1024x640.jpg"><img class="aligncenter size-medium wp-image-265" src="https://gamingandgod.com/wp-content/uploads/2014/06/retro-video-game-wallpapers-1024x640.jpg?w=300" alt="retro-video-game-wallpapers-1024x640" width="300" height="187"></a><img class="aligncenter size-medium wp-image-265" src="https://gamingandgod.com/wp-content/uploads/2014/06/retro-video-game-wallpapers-1024x640.jpg?w=300" alt="retro-video-game-wallpapers-1024x640" width="300" height="187"></a>

    Sadly, the markup WordPress has provided is making simpler changes impossible. I will put out a more comprehensive fix in a few days time that will automatically re-center everything as well.

    Thread Starter samuru

    (@samuru)

    Oh, ok great! So in a few days there will be an update to realign everything? I’m not big on messing with the code, I can’t even figure how to make a youtube video smaller (as in less width/height) no matter what I do, so I’m sure I’ll mess up aligning the images lol. I’ll wait. I don’t care for them being linked.

    So once the update is in, I don’t have to do anything?

    Theme Author Ben Sibley

    (@bensibley)

    Haha yea the update may take around a week, but I’ll see if we can get it out sooner. It has to be reviewed here which sometimes takes a little while.

    And yes, once you switch to the new version the images should realign themselves to the center.

    Thread Starter samuru

    (@samuru)

    Great! Please let me know when it’s updated, thanks a lot for all your support.

    Theme Author Ben Sibley

    (@bensibley)

    You’re welcome! I’ll post a reply here and you’ll get a notification in your dashboard as well.

    Theme Author Ben Sibley

    (@bensibley)

    Version 1.20 is now available with the fix. Marking as resolved.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘images align to the left automatically’ is closed to new replies.