• Hi,
    I downloaded and installed Stray-Quotes plugin without any problem, it works like a charm. It’s just a minor thing bugging me, the alignment of the text. I don’t know why but the text is aligned to the right when I really would like it to be aligned to the left, like the other text in the sidebar.

    I’ve looked around in the CSS files but could not manage to get it leftaligned.

    This is how it looks a.t.m: https://www.victorsvedberg.se/katolskakyrkan/

Viewing 5 replies - 1 through 5 (of 5 total)
  • you probably could find this line in stray_quotes.php
    add_option('stray_quotes_before_all', '<div align="right">');
    and change <div align="right"> to <div align="left">

    Thread Starter Ihks

    (@ihks)

    I tried it but it did’nt work. :/

    Any other ideas?

    I am in the process of building my first blog and have experienced the exact same issue with the alignment being to the right. I viewed the Ihks link and the Stray Quote is in the right sidebar and mine is in the left sidebar. Both of them align to the right. I even tried to change the code as mentioned by couchmouse including commenting it out to see what happened and nothing changes no matter what I do (left, center, right or commented out).

    One interesting thing that I noticed is that when I entered [random-quote] to a mock post the alignment is always to the left, so its appearing that something else is causing this to occur in the sidebar.

    Of all the quote widgets I looked at, this is the best one because it also allows me to predetermine which quote to use if I so choose and managing the quotes is much easier too but this alignment issue is kind of annoying.

    Because I’m still a bit new to this whole thing, I got to poking around the various areas in WP 2.5 and stumbled upon the solution to this problem. Click on Settings and then click on Stray Random Quotes. There are a serious of boxes that allow you to tweak this widget. The second one, “Author, Quote and Source”, shows settings for Before and After. Before is marked “<div align=”right”>”. I changed this to left, scrolled to the bottom and clicked on “Update Options”, refreshed my blog page and it now aligns to the left.

    couchmouse’s solution will never work if you’ve already activated and set-up because these options in stray_quotes.php is alread added to the wp_options table in database.

    In Settings > Stray Random Quotes’s Options page;

    Empty the ‘Widget Title and Sidebar Element Title’ (1st textbox)
    On the 2nd textbox, add your sidebar styles <div align=”right”> followed by ‘Widget Title and Sidebar Element Title’ with its style

    eg: <div align=”right”><h4>Random Quotes – ????????????</h4>

    also don’t forget to close the div tag by adding an extra div closing tag to ‘Author, Quote and Source'(4th textbox) for “Formatting elements after this group.”

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Stray-Quotes, how do I align the text to the left’ is closed to new replies.