-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar.php
56 lines (52 loc) · 1.15 KB
/
sidebar.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* The sidebar containing the main widget area.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Fashify
*/
if ( ! is_active_sidebar( 'sidebar-1' ) ) {
return;
}
?>
<aside id="secondary" class="sidebar widget-area" role="complementary">
<?php dynamic_sidebar( 'sidebar-1' ); ?>
<style>
.sidebar{
position: -webkit-sticky;
position: sticky;
top: 0;
}
.ad{
height: auto;
padding: 9px 5px;
margin: auto;
box-shadow: 0px 0px 5px #777;
background: #fff;
overflow: hidden;
border: 1px solid #eee;
border-radius: 4px;
text-align: center;
}
@media only screen and (max-width: 768px) {
/* For mobile phones: */
.advertize{
display:none;
}
}
</style>
<div class="advert">
<div class="ad">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 970by250 -->
<ins class="adsbygoogle"
style="display:inline-block;width:300px;height:600px"
data-ad-client="ca-pub-7616051391644176"
data-ad-slot="7650038623"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
</aside><!-- #secondary -->