• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Banner Section to right of Logo in News Pro

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Banner Section to right of Logo in News Pro

This topic is: not resolved
  • This topic has 14 replies, 3 voices, and was last updated 11 years, 7 months ago by dpalme.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • December 5, 2013 at 2:48 pm #77279
    dpalme
    Participant

    How do I configure the banner ad section in the news pro theme, I'm referring to the one that's just to the right of the logo?

    December 5, 2013 at 3:06 pm #77283
    Brad Dalton
    Participant

    Add the HTML for the banner to the header right widget area in a text widget.


    Tutorials for StudioPress Themes.

    December 5, 2013 at 10:26 pm #77312
    dpalme
    Participant

    Thanks, do you have a preferred script for a rotating banner ad setup?

    Also, I tried to add some php code to the html, but it didn't like that... is there a way to use php in the text widget?

    December 6, 2013 at 5:16 am #77335
    nutsandbolts
    Member

    The AdRotate plugin is a good one, and it's easy to use.

    As for using PHP in a widget, you can do that after adding this to functions.php:

    // Enable PHP in widgets
    add_filter('widget_text','execute_php',100);
    function execute_php($html){
         if(strpos($html,"<"."?php")!==false){
              ob_start();
              eval("?".">".$html);
              $html=ob_get_contents();
              ob_end_clean();
         }
         return $html;
    }

    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    December 6, 2013 at 12:44 pm #77401
    dpalme
    Participant

    Would this same code apply for adding php to a page?

    December 6, 2013 at 12:54 pm #77408
    nutsandbolts
    Member

    If you want to add PHP to a page, you'd probably need to add a widget area to the page. I have a tutorial on how to do that: http://www.nutsandboltsmedia.com/how-to-add-a-widget-area-to-a-page-using-genesis/


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    December 6, 2013 at 10:12 pm #77497
    dpalme
    Participant

    I assume that once I add the widget I'll need to add something like a text widget to the page and that will display everything correctly?

    I followed the above instructions, they seem to be working ok, but I was wondering how I can suppress the page name?

    December 6, 2013 at 10:20 pm #77500
    dpalme
    Participant

    Well the php isn't working in the widget on the page....

    December 6, 2013 at 10:33 pm #77501
    nutsandbolts
    Member

    Can you paste in the PHP you need to use?


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    December 6, 2013 at 10:44 pm #77503
    dpalme
    Participant

    Its going to be a lot of code, I'm slowly building it out but basically I am trying to add a database call to display some data and plan on eventually formatting it to create links to other pages, with more data being called from a mysql database.

    One of the items I'm trying to add up front is a jquery tabs display:

    this is the first part of the call:

    <head>
    <meta charset="utf-8">
    <title>jQuery UI Tabs - Default functionality</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
    <link rel="stylesheet" href="/resources/demos/style.css">
    <script>
    $(function() {
    $( "#tabs" ).tabs();
    });
    </script>
    </head>
    <body>
    and then the php follows that with a mysqli_connect call.

    December 6, 2013 at 10:46 pm #77504
    dpalme
    Participant

    Well so far I've created a page template and that seems to work a little better and when I added the get_header it displayed the header like I wanted too... so maybe that's the better way of going...

    December 7, 2013 at 8:05 pm #77593
    dpalme
    Participant

    I got the header working with get_header(); but when I put in get_footer(); it displays in the wrong place, its showing up in one of the tabs, even though I have it in a div outside of the tab code.

    December 7, 2013 at 8:12 pm #77598
    dpalme
    Participant

    got it!!

    Was missing a table tag, of course I'm going to get rid of that eventually, but we're movin on up (playing the Jeffersons in the background 🙂 )

    December 7, 2013 at 8:13 pm #77599
    nutsandbolts
    Member

    Woohoo! I've been following along, but haven't had much advice since I'm still not totally sure what you're doing. Crossing fingers that you get it worked out (and then come back to post a detailed tutorial for other people who may need to do something like this)! 😀


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    December 7, 2013 at 8:25 pm #77601
    dpalme
    Participant

    LOL I have a jquery tabs script that I'm using to load table data from a mysql database. This way I can load all the data at the same time and preload the tabs....

    Now, its a matter of layout issues.

    I'll be happy to write a tutorial on this once I'm done.

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 15 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble