HELP Our theme sucks - makes all external links open in new window - can I apply another theme to block?
Permalink
After wasting so much time trying to figure out issue as add-on wasn't functioning properly, I realized that AGAIN it is being caused by the custom theme.
There is no attribute to turn off - "open link in new window" for external links in a block. I'm using the Video Gallery addon and also Multimedia Box. I know I can apply a theme to a page (don't want this).
Is there a way to apply a theme to a block? Or is there a way to create a page template where the main body is not using the custom theme?
This is driving me crazy. I'm a newbie, but can usually customize and edit if I have the info.
Thanks for your help.
HELP!
Daniel
There is no attribute to turn off - "open link in new window" for external links in a block. I'm using the Video Gallery addon and also Multimedia Box. I know I can apply a theme to a page (don't want this).
Is there a way to apply a theme to a block? Or is there a way to create a page template where the main body is not using the custom theme?
This is driving me crazy. I'm a newbie, but can usually customize and edit if I have the info.
Thanks for your help.
HELP!
Daniel
Hi Sean, Thanks so much for your reply. I didn't create the theme, just been helping the owner over the last few months. The people who did became unreliable, was a big issue. Every time we install an add-on, it doesn't work as it should; changing the theme and bingo, works perfectly. We don't anticipate needing more changes, it's mostly a portfolio site with some galleries, so starting with a new theme would be enormous work given how they set it up. The theme is applied to the page and there are about 4 templates. I searched every doc in the theme folder and no _blank.
My ignorance, I duplicated the template and used another name, but don't know how to make this block work. We have a video gallery that opens each in a type of lightbox. With the custom theme applied everything opens twice, lightbox pop-up and a new page.
UGH
Daniel
My ignorance, I duplicated the template and used another name, but don't know how to make this block work. We have a video gallery that opens each in a type of lightbox. With the custom theme applied everything opens twice, lightbox pop-up and a new page.
UGH
Daniel
Concrete can get a little confusing with all its customisable themes on both pages and blocks and then throw in the page templates and page types.
Assuming this is a page theme that is causing the issue it may be some javascript that is being fired and then amending each link when it is clicked.
The following is just an example it could be usng jquery to do a similar thing.
Failing the above, do you have a public link that we could take a look at? see if anything is obvious from the source code?
Assuming this is a page theme that is causing the issue it may be some javascript that is being fired and then amending each link when it is clicked.
The following is just an example it could be usng jquery to do a similar thing.
function externalLinks() { for(var c = document.getElementsByTagName("a"), a = 0;a < c.length;a++) { var b = c[a]; b.getAttribute("href") && b.hostname !== location.hostname && (b.target = "_blank") } } ; externalLinks(); //http://stackoverflow.com/questions/12987963/open-external-links-in-a-new-tab-without-jquery
Failing the above, do you have a public link that we could take a look at? see if anything is obvious from the source code?
Custom templates can be applied to blocks, though if its your own custom them you could edit it to remove the target="_blank" which is probably applied to all the links?