• Resolved hnortham

    (@hnortham)


    Firstly can I just say that this plugin tops all paid plugins and I would have paid money to have this functionality, great job Paul!!

    I have a question I am adding affiliate links to my website like so: [amazon asin=B004OVDGVQ]

    However, being new to the software the link text displayed within my post is the default amazon.

    How can I change the link text to something custom?

    https://wordpress.org/plugins/amazon-link/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author paulstuttard

    (@paulstuttard)

    Hi,

    There is a bug in the current version… In the ‘Add Amazon Link’ box the ‘Link Text’ field should change that, but it is not being carried into the shortcode properly.

    What should happen is that the shortcode should look like this:

    [amazon asin=B004OVDGVQ&text=Amazon]

    I hope to get a fixed version done by the end of the week. But in the meantime you can manually update the shortcode to change the ‘text’ argument.

    Hope this helps,

    Paul

    Thread Starter hnortham

    (@hnortham)

    Hi Paul,

    I had just this second worked out how to do that. I stupidly didn’t read your detailed “Quick Start” on the plugin details page.

    Is it possible to link solely to a Amazon search results page instead of a product. I know that localized links go to a search page but how about the default country?

    Thanks again,
    Harry

    Plugin Author paulstuttard

    (@paulstuttard)

    Hi,

    A bit trickier, you need to create a template on the Amazon Link > Templates admin page.

    For example create a template with the following settings:

    Template Name:        search
    Template Description: A Text Search link
    Template Type:        Product
    Disable Preview:      No
    The Template:         %SLINK_OPEN%%TEXT%%LINK_CLOSE%

    Then in the shortcode specify this template, e.g.:

    [amazon asin=B004OVDGVQ&text=Amazon&template=search]

    That should do what you’re after,

    Paul

    Thread Starter hnortham

    (@hnortham)

    Nice, that’s awesome!! Cheers mate.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘How to set the link text’ is closed to new replies.