• Resolved kayakbabe

    (@kayakbabe)


    Instead of having the link open in the same browser window. I want to have it open in a new window.

    your code generates this

    
    <div class="ccchildpage  cceven ccpage-count-2 ccpage-id-6640 ccpage-frisky">
    <a class="brandcatalog" href="https://example.com/" title="Frisky">Frisky</a>
    </div>

    and I want to have it insert a html anchor target like so

    <div class="ccchildpage  cceven ccpage-count-2 ccpage-id-6640 ccpage-frisky">
    <a class="brandcatalog" TARGET="NEW" href="https://example.com/" title="Frisky">Frisky</a>
    </div>

    It would be nice if there was an option for the plug in that allowed to specify same window or new window for the custom links. Often people probably would use them for off-site links. I use them to link to flip html catalogues that are hosted elsewhere. But I also use your plugin to do linking to child pages in other parts of my site. So, just editing the plugin files seems like a bad idea to me. (plus when you update the plugin, I would have to redo all my custom edits. not a good idea)

    (by the way the custom field thing as a link is spectacular, thank you).

    • This topic was modified 7 years, 12 months ago by kayakbabe.
    • This topic was modified 7 years, 12 months ago by kayakbabe.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author caterhamcomputing

    (@caterhamcomputing)

    This is certainly a good idea!
    My thoughts are to add a parameter called link_target which would accept all of the values that you could use in the <a> tag.
    I will also add a new use_custom_link_target parameter to allow the value for the HTML target attribute to be set per page/post using a custom field (that way you could set some links to open in a new window, and others to open in the existing one).
    I was hoping to have the new version available about a month ago, but have not been able to work on the project recently due to unexpected work and private commitments. Hopefully I can add this to the version I have ready for testing and get it rolled out shortly.
    Watch this space ….

    I second this request. I have been trying to troubleshoot a remedy for this myself but I think I’ll wait until you roll out the next update. Love your work man… well done and keep it up.

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    The new version of the plugin has just been released containing the link_target and use_custom_link_target parameters. See the description for full usage details.

    I hope this helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘can use_custom_link be set to a different target’ is closed to new replies.