BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › GWD output in the header
- This topic has 5 replies, 2 contibutors, and was last updated 9 years, 8 months ago by Alyssa.
Question
February 24, 2015 at 4:38 pm #36416@maxtorpsHi there!
I’ve been fiddling about with Google Web Designer and have created a basic HTML5 banner with it. I’d like to be able to put that in place of the site logo so I’ve put the header.php file into my working child theme.My Google Fu seems to be failing me and all I’ve seen is advice given for people to upload the GWD files (any images and the created html5 file) then use an iframe to display by slapping the iframe code into the header.php file.
Is there a better way? I’ve heard that iframe isn’t really the best way to go and I want to be code compliant as much as possible and not break the responsiveness of the theme. My header.php is pretty much standard so far and the files generated by Google Web Design are attached. I’m hoping you can advise. Thanks!
Answers
February 24, 2015 at 5:41 pm #36423@maxtorpsI’ve removed the logo section of the header.php file and put an iframe in… it does indeed work well. Just wondering if you had any alternatives in mind?
http://staging1.starfleetcomms.com/<div id="logo"> <iframe src="http://staging1.starfleetcomms.com/sfc.html" border="0" scrolling="no" allowtransparency="true" width="100%" height="275px" style="border:0;"> </iframe> </div>
February 25, 2015 at 11:06 am #36438@alyssa-buddyboss
AlyssaParticipant@maxtorps instead of using iframes the web is moving towards including files via PHP. iframes are clunky and hard to navigate and then you have to make sure you are targeting the proper window (iframe verus parent) so there is some background. If it works for your site then kudos to you! Stick with it because in reality if it’s the only thing you know then there is no harm in using iframes, especially if you are only trying to display a logo. So basically, as long as you aren’t trying to use it for navigation or other complex operations you should be fine. 🙂
February 25, 2015 at 12:20 pm #36441@maxtorpsThanks @tjchester, when I wrote last night I was a bit hasty. There is some navigation that needs to be done and windows pop up all over the place which would be fine if GWD allowed you to select target correctly!
I need to include the files I think – any pointers I can cheekily ask of you? 😉
February 25, 2015 at 1:35 pm #36442@maxtorpsOk I’ve done that simply by copy/pasting relevant parts to head and body as appropriate. Still, there appears to be a limitation with GWD that only allows target to be a new window on exit URL. Never mind.
Anyway, thanks for commenting and if you do have any ideas i’d be very grateful for them but I must acknowledge this isn’t a BuddyBoss issue at all. Thanks again.February 26, 2015 at 5:19 pm #36536
- The question ‘GWD output in the header’ is closed to new replies.