Answer the question
In order to leave comments, you need to log in
How to place ads in WP without widgets?
Hello.
The question arose: "how to place a block of google adsense and Sape ads in the sitebar of the site without using widgets at the end?"
Specifically, I want Adsense ads to just hang, but not in the widget. As for Sape, it’s there too .. many install Sape on WP with a plugin that then adds your own in widgets and you insert it .. here I am too, but I only bought links to the main one, everything is fine on the main one, but on other pages The ad disappears, but the block remains.
Answer the question
In order to leave comments, you need to log in
Here is my sidebar, it might help.
<section id="sidebar" class="secondary clearfix" role="complementary">
<?php
// Check if Sidebar has widgets
if( is_active_sidebar('sidebar') ) :
dynamic_sidebar('sidebar');
// Show hint where to add widgets
else : ?>
<aside class="widget">
<h3 class="widgettitle"><?php _e('Widget Area', '*******'); ?></h3>
<div class="textwidget">
<p><?php _e('There are no active widgets to be displayed. Please go to Appearance -> Widgets to setup your sidebar.', '**********'); ?></p>
</div>
</aside>
<?php endif; ?>
</section>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question