By dav0 on
I only want to create a link to an external site, so I do the usual html thing in an article with full html turned on:
<a href="http://sitetogoto.com">Click here to go to a site</a>
which works, except the external site content only loads into the content frame and my site's header is still there above.
I must be missing some default setting somewhere in the Bartic theme or something which causes this to happen in articles, etc.
Or, maybe there is some fancy non-standard way to link to external sites that I am not finding in the Drupal books and documentation?
Thanks!
Comments
Have you tried target=_parent
Have you tried target=_parent or target=_blank? The latter usually does the trick if it's in an iFrame...
--rj
Issue resolved: caused by beta "External IFrame" module
I am not using any iframes on this page, but I did have the "External Iframe" module enabled on my site.
Disabling the "External Iframe" module seems to have fixed the issue, but now I need to go investigate what effect disabling this module has on the page which I needed this module for in the first place (primarily just my experimental facebook page I think).
I had tried the usual HTML tricks like this, which is why I was so baffled by this:
Using "_parent" results in the same issue as described - the new site appearing under the header.
Using "_blank" results in a new tab appearing with the same issue as with "_parent"
Keep in mind that this is a Basic Page in Drupal 7 with a default Bartik theme. Nothing fancy was going on here on this page anyway.
If the link is external to
If the link is external to the site, unless it's in an iframe it should not present your site theme at all.
Issue caused by External Iframe Module
It turns out - it is the beta "External Iframe" module which was causing this issue!
I was thinking I needed this module enabled for my experimental facebook page on my site, but it seems that it is influencing *all* pages on my site!
Disabling this module fixes the issue.