• Resolved formpig

    (@formpig)


    is there a way to get my blog to open a link in a /new/ window instead of taking the place of the existing page?

    thanks

Viewing 5 replies - 16 through 20 (of 20 total)
  • When it pops up with the pre-filled https:// insert your link right there – I mean the portion: formpig.com/pdf/formpig_contouring_mans.pdf” target=”_blank” because if you put the entire https:// again it will give an error. So the answer is *yes* just put it in right after the https://, leaving out the second https://, since the WP UI is filling that in for you. ??

    Sounds like the WP UI is adding all the pre-code stuff – can you find where it is filling it in in your code and copy the entire length of it here? Then I can see exactly what the WP UI is adding to it. Typically, just using HTML code, you would write the link exactly as follows:

    <a "href://formpig.com/pdf/formpig_contouring_mans.pdf" target="_blank">formpig.com</a>

    So whatever code the WP UI is inserting for you should be deleted – unless it has .php code in front of it like this: <?php

    and you only want to delete the code that is associated with the

    in other words all code up until the ending that is pre-filled for you starting with the should be deleted and you should put in your code (if the above is the correct link, then you can just copy and paste it directly over the code that the WP UI creates – EXCEPT for any <?php before the and after the

    Does that make more sense? If not – please copy & paste the entire block of code that the WP UI is putting in for you and I’ll figure out how to get it to open for you ??

    Ugh – sorry I thought I put that all in backticks!

    Okay delete everything from the <a "href: to the </a> and paste this over it (if it is the correct link)

    <a "href://formpig.com/pdf/formpig_contouring_mans.pdf" target="_blank">formpig.com</a>

    but do NOT delete any <?php before it or anything after the closing </a> tag. Let me know if that doesn’t work. Hope that helps. ??

    Just saw your latest post – and no, you need to use the link exactly as I wrote it above, because if you put in the spaces in the URL portion it will error. If there is another or different page, put your link in the backticks and post it here and I’ll write you the HTML <a href> to open it for you. Once you see how it’s written, it only takes a few tries to do id – but you can’t have spaces in the link URL and you don’t need the www, it is always “Assumed” ??

    @formpig

    If you go to your Theme editor, and add <base target="_blank" /> to your “header.php” file, then all links will automatically open in a new window when clicked.

    It has it’s advantages, but you can end up with a lot of open windows if you click a lot of links.

    There is probably a Plugin that will allow you to pick and choose which links you want this functionality on, sorry I can’t point you to which one though.

    Thread Starter formpig

    (@formpig)

    Hi Coleen, Fish, All.

    I want to give a big huge thank you for the help. I have been able to solve this on my end at last.

    Apologies for the multiple posts and questions on this but a huge thanks for getting me moving finally on this.

    THANKS!

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘opening link in /new/ window’ is closed to new replies.