WordPress.org

Ready to get started?Download WordPress

Forums

element.style driving me crazy (3 posts)

  1. devotee
    Member
    Posted 3 years ago #

    I want to be able to display my post images two by two, with captions under them. So I´m using some jquery in my template to add "grid_12 alpha" to every even image parent - (that is the div with id="attachment-something" that wordpress wraps my images and captions in - and "grid_12 omega" to every odd parent.

    BUT, these styles get overridden by element.style which stops my magic from happening. I know element.style is not in the css but in the code, but I cant find where - and I´m guessing it must be generated by wordpress itself. So how can I override it? It keeps setting the divs width which I should be doing with my grid classes!

    :(

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    can you post a link to an example post?

    you might be able to overwrite some of the styles with using !important with your grid classes

  3. loveglass
    Member
    Posted 2 years ago #

    Hi wonder if anyone can help!
    I am using WP e-Commerce 3.8.7.6.2 bug fix release January 25, 2012 and here http://www.love-glass.co.uk/?page_id=10 I would like to change the size of image from 45px to 129px square. In the firebug is telling me to change the element.style., which I think? has to be change in my wpsc-category_widget.php??? I had a little fiddle with it but still no luck. Any hints what to do?
    Thank you in advance,
    LoveGlass

Topic Closed

This topic has been closed to new replies.

About this Topic