[resolved] img:hover border in GamePress (4 posts)

  1. paul.contreras
    Posted 3 years ago #

    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.

  2. alex27
    Theme Author

    Posted 3 years ago #

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

  3. paul.contreras
    Posted 3 years ago #

    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.

  4. alex27
    Theme Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic