WordPress.org

Support

Support » Plugins and Hacks » [Resolved] A Href targets

[Resolved] A Href targets

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author ollybach
    Participant

    @ollybach

    Hi,

    this has not been implemented (yet anyway).

    as a quick fix, you could add the following to any of your themes js files.

    jQuery(document).ready(function($){
    	$(document).on('click', '.ilw-ini>div>ul>li>p>a,.ilw-ini>div>ul>li>p>span>a,.ilw-tracklist>p a,.ilw-tracklist>div>ul a', function(e){
    		e.preventDefault();
    		window.open(this.href);
    	})
    })

    i haven’t thoroughly tested this , but give it a go.
    if enough people want this feature, I’ll update the plugin and make it a selection in the settings.

    hope that helps, but let me know if you need more

    olly

    vandyckth
    Member

    @vandyckth

    This doesn’t seem to work. I just copy-pasted the code above into the ‘functions.js’-file that came with the Theme I’m using. Is there anything else I can try?

    Tnx!

    Plugin Author ollybach
    Participant

    @ollybach

    what theme are you using ?

    vandyckth
    Member

    @vandyckth

    I’m jusing Inovado:
    http://inovado.mintithemes.com/

    Plugin Author ollybach
    Participant

    @ollybach

    i’ll see what i can do. bear with me for a day or so (or maybe even later today)

    vandyckth
    Member

    @vandyckth

    Take your time, it ain’t urgent. And many thanks in advance!

    Plugin Author ollybach
    Participant

    @ollybach

    thanks.

    i might just put that into an update of the plugin in the next few days.
    seems to be a better way of doing it than trying to come up with a hack based on an individual theme

    ….

    vandyckth
    Member

    @vandyckth

    That would be wonderfull! You’ll get a 5-star rate, for sure!

    Plugin Author ollybach
    Participant

    @ollybach

    Hi,

    version 0.5 should now allow you to open links in a new window (under affiliate settings)

    whilst doing this i actually did quite a bit of a tidy-up. I don’t think there should be any problems updating (i have tested it quite a bit) but if you find any issues, let me know.

    also, regarding the open links in new window issue that started this thread, there are different ways of doing this, so if you have problems , let me know. It’s easy to change to another way

    hope that helps

    vandyckth
    Member

    @vandyckth

    Works like a charm, tnx very much!

    Plugin Author ollybach
    Participant

    @ollybach

    good stuff….do i get a rating then ? 🙂

    vandyckth
    Member

    @vandyckth

    I just gave you a 5-star rating! 🙂

    Plugin Author ollybach
    Participant

    @ollybach

    thanks
    appreciated – makes me feel all warm and fuzzy…… 🙂

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Resolved] A Href targets’ is closed to new replies.