• Resolved sakicmilan

    (@sakicmilan)


    hello i use theme for my betly.info multisite network, i allow users to create blogs on my network.. for my ads i use some plugins but it show my ads in post, i want to show my ads in sidebar and to disable options to blog admins to remove that ad space.
    for all new blogs i use default blog theme http://betlyblogtheme.betly.info/ i can customise this blog and every new blog have same design. how to add that ad in sidebar but not widget because if i lock access to widgets admins cant add all rest widgets, i want to that ad appear on first position and all rest widgets admins can change.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author ronangelo

    (@ronangelo)

    I don’t really have experience with multisites but if you just want to place your ads on the sidebar without it appearing on the widgets page then you could hardcode the ad on the sidebar template.

    Example: For the right sidebar.

    – Copy sidebar-right.php to your child-theme then open it.
    – Find this line: <div id="widgets-wrap-sidebar-right">
    – Add your ad codes immediately below it so that the ads appear first.
    – Your added code would look something like this:

    <div class="widget-sidebar frontier-widget" >
       Your ad code here
    </div>
    Thread Starter sakicmilan

    (@sakicmilan)

    Hi ronangelo, this was very helpfull, it works. but now i have one more question, if i want to place widget there, what to do? widget shortcode dont work..

    Theme Author ronangelo

    (@ronangelo)

    Here’s an example for the shortcode [contact-form-1]

    <div class="widget-sidebar frontier-widget" >
       <?php echo do_shortcode('[contact-form-1]'); ?>
    </div>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘lock widget for multisite’ is closed to new replies.