• Resolved skyfly024

    (@skyfly024)


    Hello dear team,
    When does a class come for the links so that you can adapt the style of the Amazon links as you wish? Can you fit that in, please?
    Best regards
    G?sta Qual

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author miunosoft

    (@miunosoft)

    Hi,

    You can add your own class attribute with the Image Format, and Title Format unit options.

    For example, to add your-link, change the default value of

    
    <h5 class="amazon-product-title">
    <a href="%href%" title="%title_text%: %description_text%" rel="nofollow noopener" target="_blank">%title_text%</a>
    </h5>
    

    to

    
    <h5 class="amazon-product-title">
    <a class="your-link" href="%href%" title="%title_text%: %description_text%" rel="nofollow noopener" target="_blank">%title_text%</a>
    </h5>
    

    Or you can even customize the style withoutit as the parent element has one.

    
    .amazon-product-title > a {
       /* add your CSS rules here */
    }
    

    To apply rules to all the <i>a</i> tags, each plugin template has a different class attribute for the container so you need to find it by inspecting elements using developer tools (DevTools if you use Chrome) of your browser. For the List template, the container class attribute is amazon-products-container-list. So you can do something like

    
    .amazon-products-container-list a {
       /* add your CSS rules here */
    }
    

    Hope it helps.

    Plugin Author miunosoft

    (@miunosoft)

    Marking the topic as resolved due to inactivity.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Please add class for links’ is closed to new replies.