WordPress.org

Support

Support » Themes and Templates » [Resolved] img:hover border in GamePress

[Resolved] img:hover border in GamePress

  • paul.contreras
    Member

    @paulcontreras

    I am trying to edit the code for the img to make the border the same pixel size as when I am not hovering (or vice versa).

    I see when I try to inspect element using firefox i see that it is under
    #gallery-1 img {border: 2px solid #cfcfcf;} in inline:321 but I dont know how to get to the inline coding.

    I want to add
    #gallery-1 img:hover {border: 2px solid #cfcfcf;}

    please visit http://shop.badsentinel.com (GamePress V 1.0.3) to get a better understanding.

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author alex27
    Member

    @alex27

    Those inline styles are not generated by the theme, so you might want to ask this question on more general forum.

    paul.contreras
    Member

    @paulcontreras

    Hi Alex, thank you for replying. I was actually just interesting in just setting the border to 2px when I hover over an image in the gallery. In v .08 of GamePress it is working the way it should be, but the later version something was changed and I cant seem to find the code to modify it. Can you please help. Thank You.

    Theme Author alex27
    Member

    @alex27

    Turns out it’s not exactly GamePress issue, it’s just that when you use gallery shortcode those inline styles are added regardless of the theme. I found a snippet to remove gallery inline styling:

    add_filter( 'use_default_gallery_style', '__return_false' );

    You can try adding it via Code Snippets plugins instead of editing theme functions.php file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] img:hover border in GamePress’ is closed to new replies.