• Resolved davekehoe84

    (@davekehoe84)


    Hi,

    Great plugin.

    Is there a way to make all the links to the popular posts target=”blank” links?

    Please let me know if this is possible, and how it can be done.

    Best wishes

    Dave Kehoe

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi Dave,

    Yep, it can be done:

    1. Go to Settings > WordPress Popular Posts > Tools.
    2. Under Miscellaneous, set Open links in to New tab/window.
    3. Hit the Apply button to save changes.
    4. Profit!
    Thread Starter davekehoe84

    (@davekehoe84)

    Hi Hector,

    Thanks for responding so quickly.

    That is great, it was a far simpler change than I thought it would be.

    Getting even more specific, is it possible to apply this rule to only one of the places I place the wpp plugin?

    For example, I use wpp on a page to showcase some of my popular content, where I would like the links to be target blanks.

    But I also use wpp in a sidebar, where I would prefer the links to not be target blanks.

    Can you specify this rule to each individual use of the plugin?

    Getting picky I know! Thanks for your ongoing help.

    Dave

    Plugin Author Hector Cabrera

    (@hcabrera)

    You mentioned that you’re using WPP on a page so I’m assuming you’re talking about the [wpp] shortcode. Try this:

    1. Go back to Settings > WordPress Popular Posts > Tools and set Open links in to Current window.
    2. Now, let’s have links on your WPP page open in a new window / tab by using the post_html parameter to modify the HTML output. Here’s an example: [wpp range='all' post_html='<li>{thumb} <a href="{url}" target="blank">{text_title}</a></li>'] (see Settings > WordPress Popular Posts > Parameters for more.)

    This also works with the wpp_get_mostpopular() template tag, just in case you’re wondering 🙂

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

The topic ‘target=blank links’ is closed to new replies.