What plugin are you using to build the portfolio?
The site has been around for a while and I’ve only currently been making updates. The theme is Phlox Child if that matters. I’m not building the portfolio, just added additional items.
For this I go to portfolio > new and then add the information. For URL in question I just enter it into a field called ‘URL for Launch Button’ but there are no other options for this field. I don’t know where the HTML or CSS for this page is coming from.
For the other stuff I’m doing I use Elementor Pro, but when adding these portfolios I use the block editor. I have the option to edit the portfolio with Elementor, but when I try I can only touch the header and footer.
There are quite a few of these portfolios and I would love to make a global change to make these urls open in a new tab.
edit: I justs checked the Phlox docs and this is a Phlox porfolio. Can’t find what I’m looking for though
-
This reply was modified 3 years, 9 months ago by lgehrig4.
Was hoping I could find a built in way but I ended up using JS
window.onload = function(){
let anchors = document.getElementsByClassName('aux-button');
for (let i=0; i<anchors.length; i++){
anchors[i].setAttribute('target', '_blank');
}
}
oh nevermind… I wrote out a long answer but if what you did above works then do that. Although I’d recommend not adding custom code like that unless you really have to because you dont know if a later version of the theme will work with that or not.. the safest bet for you is to ask the theme developer if you can set the links to open in a new window via settings or something.
-
This reply was modified 3 years, 9 months ago by Ben Rothman.
Thanks @brothman01. I actually worked it out with javascript (see post above yours), but I did try your option 1 and it did not work
@lgehrig4 yeah I changed that answer so it says something else now.. try that.