• Resolved vannessarhoades

    (@vannessarhoades)


    Hi! Really liking this plug in so far. I’d like to change the button color and hover color to be more consistent with the branding on my site, but I can’t figure out how to do it. I tried adding CSS code to the actual page where I intend to place the Shop Page WP shortcode, but it’s not having any effect on what’s inside the plugin. Is there a way to do that?

    *Not sure if it matters but I’m a WordPress.com Business customer, not a self-hosted www.ads-software.com…so if the solution is anything related to changing php code on my end I probably can’t do it. Thanks in advance!

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author leonmagee

    (@leonmagee)

    Hi Vannessa! Can you send me the url of the page on your site where the plugin is being used? That will help me test some CSS for you to use.

    Thanks

    Thread Starter vannessarhoades

    (@vannessarhoades)

    My website is https://threebearshomestaging.com/. Do you need the URL to the specific page I’m trying to create? I don’t have that active/published just yet. Do I need to do that first?

    Plugin Author leonmagee

    (@leonmagee)

    That would help, in case it’s some theme specific CSS that is making it harder to style.

    Plugin Author leonmagee

    (@leonmagee)

    Here’s what the CSS would look like if you want to give it a try:

    .shop-page-wp-link {
        background-color: red;
        border-color: red;
        border-color: red !important;
    }
    .shop-page-wp-link a.buy-link {
        color: #fff;
    }

    You should try it first without using the !important tag, but you can use that if it doesn’t work at first.

    Plugin Author leonmagee

    (@leonmagee)

    And here for the hover:

    .shop-page-wp-link:hover {
        background-color: green;
        border-color: green;
    }
    Thread Starter vannessarhoades

    (@vannessarhoades)

    Thank you! It is getting closer (button color changed), but not quite there yet.

    The background hover color won’t change (still showing black even when I put my brand hex code in). The hover boreder DOES change though.

    Also would like to be able to change the button font color.

    Thanks in advance for any additional help you can offer!

    Thread Starter vannessarhoades

    (@vannessarhoades)

    Still playing with the code. Was finally able to get the hover background to change, but it’s still doing this kind of weird thing when the mouse gets close to the button (but not quite “hovering” over it) where it swaps out my colors for black and white. As long as your mouse is directly on or off the product it doesn’t do it. I’m going to keep working with it, but appreciate any insight you can offer.

    Plugin Author leonmagee

    (@leonmagee)

    If you can make the plugin live on one page I can try doing it. And you can let me know what colors you are trying to use.

    Thread Starter vannessarhoades

    (@vannessarhoades)

    Yes, I can do that. Can I send you the link privately? If so, where should I send it?

    Plugin Author leonmagee

    (@leonmagee)

    Sure, you can email me at [email protected]

    Plugin Author leonmagee

    (@leonmagee)

    You can try this:

    
    .shop-page-wp-link a.buy-link {
        color: #fff !important;
    
    }
    .shop-page-wp-link {
        box-shadow: inset 0 -3px 0 0 rgb(0 0 0 / 25%);
        border-radius: 9px;
        border: none !important;
        padding: 0.5em 1em !important;
    }
    .shop-page-wp-item:hover .shop-page-wp-link {
        background-color: #e94f1d !important;
    }
    .shop-page-wp-item .shop-page-wp-link:hover {
        background-color: #89d1ce !important;
    }

    I added a line for padding, but that’s optional. The 0.5em is top and bottom, the 1em is right and left.

    Thread Starter vannessarhoades

    (@vannessarhoades)

    Thanks! I just implemented the new code, but take a look. The 3d effect is great and colors are working but now the button disappears altogether (except for a bit of a shadow). Are you seeing that also?

    Plugin Author leonmagee

    (@leonmagee)

    You might need to combine this with some of the code you’ve already added.

    .shop-page-wp-link {
        box-shadow: inset 0 -3px 0 0 rgb(0 0 0 / 25%);
        border-radius: 9px;
        border: none !important;
        padding: 0.5em 1em !important;
        background-color: #e94f1d !important;
    }

    This style will probably need the background color too.

    Plugin Author leonmagee

    (@leonmagee)

    I think adding the background color here fixes that.

    Plugin Author leonmagee

    (@leonmagee)

    Oh, and you can add font weight here:

    .shop-page-wp-link a.buy-link {
        color: #fff !important;
        font-weight: bold;
    }
Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Button color and hover color’ is closed to new replies.