Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

  1.  

    The wordpress theme setting blows up a site using the Genesis Framework and the wordpress theme work around offered does not help. I fiddled with it and think this will work as a work. I used this to overwrite the code in the main.tpl theme file. Perhaps this can help someone else as well. I'm still testing it but it looks promising.

    <?php
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'my_custom_loop' );
    function my_custom_loop () {
    global $oiopub_set, $templates, $oio_inc, $oiopub_hook;
    ?>

    <link type="text/css" href="<?php echo $oiopub_set->plugin_url; ?>/libs/bubble/bubble.css" rel="stylesheet" />
    <script type="text/javascript" src="<?php echo $oiopub_set->plugin_url; ?>/libs/bubble/bubble.js"></script>
    <script type="text/javascript" src="<?php echo $oiopub_set->plugin_url; ?>/libs/misc/oiopub.js"></script>
    <script type="text/javascript">window.onload = function(){ enableTooltip('oiopub-container'); }</script>

    <div id="oiopub-container" style="padding:20px 0;">

    <?php
    //OIO content include
    $oio_inc = empty($templates['path']) ? $oiopub_set->folder_dir . "/templates/core" : $templates['path'];
    include_once($oio_inc . "/" . $templates['page'] . ".tpl");
    ?>

    <?php
    //javascript insert
    echo $templates['javascript'];
    $oiopub_hook->fire('content_end');
    ?>

    </div>

    <?php } ?>

    <?php genesis(); ?>

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorDivaVocals
    • CommentTimeSep 18th 2014 edited
     

    Using the Genesis Dynamik child theme this is the code I am using:
    <!DOCTYPE html>
    <html lang="en-US">
    <head>
    <title>Purchase Ad Space Here</title>
    <!-- bof Load Dynamik child theme stylesheet with other WordPress stylesheets (placing AFTER wp_head will load the stylesheet in the footer) -->
    <?php dynamik_add_stylesheets(); ?>
    <!-- bof Load Dynamik stylesheet with other stylesheets -->
    <?php wp_head(); ?>
    </head>
    <body class="page page-template-default content-sidebar windows ie11 feature-top-outside site-fluid override" itemscope="itemscope" itemtype="http://schema.org/WebPage">
    <?php unregister_sidebar( 'header-right' );?>
    <?php genesis_header(); ?>
    <?php genesis_do_nav() ?>
    <div class="site-inner">
    <link type="text/css" href="<?php echo $oiopub_set->plugin_url; ?>/libs/bubble/bubble.css" rel="stylesheet" />
    <script type="text/javascript" src="<?php echo $oiopub_set->plugin_url; ?>/libs/bubble/bubble.js"></script>
    <script type="text/javascript" src="<?php echo $oiopub_set->plugin_url; ?>/libs/misc/oiopub.js"></script>
    <script type="text/javascript">window.onload = function(){ enableTooltip('oiopub-container'); }</script>
    <div id="oiopub-container" style="padding:20px 0;">
    <?php
    //OIO content include
    $oio_inc = empty($templates['path']) ? $oiopub_set->folder_dir . "/templates/core" : $templates['path'];
    include_once($oio_inc . "/" . $templates['page'] . ".tpl");
    ?>
    <?php
    //javascript insert
    echo $templates['javascript'];
    $oiopub_hook->fire('content_end');
    ?>
    </div>
    </div><!-- end #site-inner -->
    <?php genesis_footer(); ?>
    <?php wp_footer(); ?>
    </body>
    </html>

    This will need tweaking of course depending on your Genesis options.. This should work for MOST Genesis setups though.. But there will be exceptions.. For example, I am using the Dynamik child theme for Genesis. So the call to the Dynamik stylesheet in my code above may be different for someone using a different child theme. Dynamik also includes an option for an EZ Home Feature widget.. While this displays on my home page, I did not want the EZ Home Feature widget area to display on my purchase page so I excluded it by only calling the main nav menu (versus <?php genesis_after_header() ?> which calls both the navigation AND the EZ Home Feature widget).

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeSep 19th 2014
     
    Project Admin

    @DivaVocals - thanks for sharing!

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorDivaVocals
    • CommentTimeSep 27th 2014 edited
     

    With the help of some folks on the Cobalt apps forum (the makers of the Dynamik child theme for Genesis), I have edited my earlier post with some much needed updates.. The code posted now is MUCH more streamlined now and should work for most Genesis users.

    The discussion which lead to the changes is here: http://cobaltapps.com/forum/forum/main-category/web-design-talk/32870-need-to-remove-ez-feature-top-widget-from-my-custom-page

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeSep 27th 2014
     
    Project Admin

    Great, much obliged.

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorKenner82
    • CommentTimeMay 24th 2016
     

    I don't understand enough code to follow the discussion in the linked post :( Any chance a finalized version could be shared here? :)

    Need help?  Quick start guide | Troubleshooting | All help topics