Site logo

[Support request] How do I create a shadow around quote?

Home Forums Support [Support request] How do I create a shadow around quote?

Home Forums Support How do I create a shadow around quote?

Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • #2053441
    Shami

    I want to create a shadow effect around quotes.

    Check here

    Also, I want to create underline below the links as one this page:

    https://www.wplogout.com/create-deal-page-in-wordpress/

    #2053985
    Elvin
    Staff
    Customer Support

    Hi there,

    Can you link us to the sample page having this exact element on your site?

    To check which selectors can be used to achieve your preferred styling.

    I’ve checked the page you’ve linked but I didn’t see this one in particular. (Perhaps I missed it. If I did, can you point me to where specifically it’s located? thanks)

    #2054379
    Shami

    First, I want to know how to create such stylish underline below links.

    There are lots of links on this page:

    https://www.wplogout.com/create-deal-page-in-wordpress/

    #2054810
    Ying
    Staff
    Customer Support

    This is the CSS that website is using, you can give it a try:

    .entry-content a:not(.button):not(.wp-block-button__link):not(.gb-button) {
        text-decoration: none;
        background-image: linear-gradient( transparent 2px, #2ed392 2px, #2ed392 4px, transparent 4px ), linear-gradient( transparent 2px, #d8dce9 2px, #d8dce9 4px, transparent 4px );
        background-size: 0% 6px, 100% 6px;
        background-position: 0 bottom, 0 bottom;
        transition: background-size 0.3s ease-in-out;
        background-repeat: no-repeat;
        padding-bottom: 4px;
        font-weight: 700;
    }
    .entry-content a:hover:not(.button):not(.wp-block-button__link) {
        color: #115cfa;
        background-size: 100% 6px;
    }
    #2055283
    Shami

    I tried it. And cleared the cache. it’s not having any effect on the links. I’m not seeing any difference. Only buttons shrink weirdly.

    #2055460
    David
    Staff
    Customer Support

    Hi there,

    can you share a link to YOUR site where we can see the links ?

    #2055495
    Shami

    Yes, sure.

    I’ve shared the website blog. Open any article and see the links.

    #2055523
    David
    Staff
    Customer Support

    Try this CSS:

    .entry-content p a {
        text-decoration: none;
        background-image: linear-gradient( transparent 2px, #2ed392 2px, #2ed392 4px, transparent 4px ), linear-gradient( transparent 2px, #d8dce9 2px, #d8dce9 4px, transparent 4px );
        background-size: 0% 6px, 100% 6px;
        background-position: 0 bottom, 0 bottom;
        transition: background-size 0.3s ease-in-out;
        background-repeat: no-repeat;
        padding-bottom: 4px;
        font-weight: 700;
    }
    .entry-content p a:hover {
        color: #115cfa;
        background-size: 100% 6px;
    }

    It will only style links inside a paragraph thats in the main content.

    #2055554
    Shami

    It’s not working. I added the css. Cleared the cache. No change.

    Update: I checked the same CSS on my other website.. It worked. What could be the issue?

    I cleared the cache.

    #2055785
    David
    Staff
    Customer Support

    Where did you add the CSS to your site?

    #2055882
    Shami

    In “Additional CSS” under Customize section in WordPress.

    #2055908
    David
    Staff
    Customer Support

    Move it to the top of the Additional CSS.

    #2055930
    Shami

    Moved it to the top. Stil not seeing the change. When I added to my another website, it worked instantly, but for some reason it’s not working here.

    #2055933
    David
    Staff
    Customer Support

    The i can only assume you have some plugins caches or server caches that need clearing.

    #2055939
    Shami

    Hey that worked. I added the CSS via plugin.

    Now please help add shadow like effect around quotes.

    Check the image in the very first comment in this thread.

Viewing 15 posts - 1 through 15 (of 24 total)
  • You must be logged in to reply to this topic.