• Resolved Lenne86

    (@lenne86)


    Hello,
    I own a blog where I post reviews of products. Sometimes they are purchased by me, sometimes they are press sample.
    I would like to specify this at the beginning of each post, by adding a small button or a banner, after the title, containing the words Press Sample or Purchased by Me.

    There’s a way o a plugin to add this?

    I would like to do something like this: https://www.temptalia.com/round-nars-final-cut-collection-reviews-photos-swatches

    See the Press Sample and Affiliates Links buttons?

    Thank you in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • He Lenne86,

    Do you have access to edit your theme? If so, you could use a taxonomy or tag to do this. Then use an if statement to link to the statement as they have.

    Reference: https://codex.www.ads-software.com/Function_Reference/has_tag
    Example:

    if( has_tag( 'tag-name-for-affiliate' ) ) {
    	echo '<a href="link-to-statement" class="button">Press Sample</a>';
    } if( has_tag( 'tag-name-for-review') ) {
    	echo '<a href="link-to-statement" class="button">Affiliate Link</a>';
    }

    You would need to create the tags for this. Also, the class="button" is the way I would include the style for a button to the link. That would be totally up you!

    Hope this helps!

    Thread Starter Lenne86

    (@lenne86)

    Hello Allen,
    thank you for your suggestion! I’m currently using my own theme based on twenty-ten WP theme, so I can easily edit it!

    I’ll give a try, thank you!

    Hey Lenne86,

    If the solution works for you, could you mark this as resolved?

    Thread Starter Lenne86

    (@lenne86)

    yes, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Blog Post "buttons"’ is closed to new replies.