Adjust size of "Editor & User Reviews" using code from Github

Front Support Plugins Support WP Rich Snippets Plugin Adjust size of "Editor & User Reviews" using code from Github

This topic contains 5 replies, has 2 voices, and was last updated by  Hesham 1 year, 9 months ago.

  • Author
    Posts
  • #7176

    Heath Holmes
    Participant

    Hesham,

    I posted this in another thread but I don’t think you saw it so I’m just going to post it in it’s own thread.

    I have applied the code provided on Github to display both editor and user reviews but when a user provides a rating the user review section spills into my sidebar which causes the entire sidebar to move to the footer. Is there a way to adjust the display to float at like 90% of the post area or something so my sidebar widgets stay in place?

    Sorry, I don’t know all the terminology since I’m not a programmer/coder but I’m trying to make it work. I can provide a link if you need to see an example.

    thanks,

    Heath

  • #7198

    Hesham
    Keymaster

    Hi Heath,

    Yes please, provide a link to where I can see the issue.

  • #7211

    Heath Holmes
    Participant

    I’m still building my site but when I create a product review and then enable the “display editor and user ratings” code it looks like this: http://cranxx.com/cranxx-site-review/ – my sidebar widgets all show up like they’re supposed to and everything looks correct until a user adds their vote/rating.

    When a user does add their rating then the user’s rating extends past the post area and the sidebar widgets all go to the bottom like this: http://cranxx.com/park-tool-pcs-10-review/

    Please let me know if you see what I’m talking about.

    thanks,

    Heath

  • #7220

    Hesham
    Keymaster

    Great, thanks.

    Try adding this to your theme’s styles.css file (at the very end of the file)

    #main {
      width: auto;
    }

    Let me know if this fix the issue.

  • #7230

    Heath Holmes
    Participant

    Hesham, that fixed the issue. Thank you very much for the solution. Now I have to try and center the widgets in the sidebar to give them a little bit of white space. I appreciate the response.

    Heath

  • #7254

    Hesham
    Keymaster

    No problem, I hope you can make it!

    Here is a tip though…

    Try adding a custom class for reviews pages, then you can use this code (replace your_custom_class with your actual custom class name):

    .your_custom_class .side {
      margin-left: 30px;
    }

    I hope this helps.

The forum ‘WP Rich Snippets Plugin’ is closed to new topics and replies.