BuddyBoss Home – Web Support Forums Themes BuddyBoss theme GWD output in the header

Viewing 6 posts - 1 through 6 (of 6 total)
  • Question

    #36416
    @maxtorps

    Hi 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

    #36423
    @maxtorps

    I’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>
    #36438

    Alyssa
    Participant
    @alyssa-buddyboss

    @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. 🙂

    #36441
    @maxtorps

    Thanks @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? 😉

    #36442
    @maxtorps

    Ok 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.

    #36536

    Alyssa
    Participant
    @alyssa-buddyboss

    @maxtorps I’m afraid I’ve never used GWD but I’m sure they have a large community with forums with ample number of people willing to help out. Good Luck with this issue!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The question ‘GWD output in the header’ is closed to new replies.