Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

  1.  

    Hello,

    I am building a responsive site and I need the output to have all of the inline styles stripped from the output.

    I attempted the hacks.php workaround but unfortunately it broke the site.

    Do you have any ideas?

    Kind regards

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

    If I paste any php function into the hacks.php file the page just stops loading.

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

    I found a previous blog post on the forum about the 'fluid' option you can pass to the ad zone. It would be good if this was an option when you set up the ad zone.

    Thanks

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeMay 4th 2013 edited
     
    Project Admin

    Assuming you're using OIO's banner or text ad zones, you should be able to get around it using the following ad zone custom parameter:

    <?php
    if(function_exists('oiopub_banner_zone')) {
    oiopub_banner_zone(1, array(
    'markup_allow_style' => false,
    ));
    }
    ?>

    You could also use the 'fluid' parameter, but if you want to get rid of inline styles completely them the markup option is probably best.

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