starta-blogg
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Hueman] I want to ad a banner to the headerHi,
if you would like Adesene to show in the header as on my page https://www.starta-blogg.se – please follow these steps:
Log in to your WordPress account and choose “Appearence” and then “editor” (in swedish “utseende” och “redigerare”)
To the right on your screen locate header.php and click on it!
Locate the row: <?php if ( ot_get_option(‘site-description’) != ‘off’ ): ?><p class=”site-description”><?php bloginfo( ‘description’ ); ?></p><?php endif; ?>
After the above row enter:
<div class=”ads”>
Your Adsense code</div>Now the ad will hopefully show up in your header. If you would like to adjust the position of the ad your have to ad some code to your css-file.
Either your have a child CSS-file or you do a “quick-fix” and add the code directly to the style.css file.
.ads {
display: block;
float: right;
margin-right: 5px;
margin-top: 0px;
}Adjust margin-right and margin-top to your needs (from -100px to 100px).
Good luck!
Forum: Themes and Templates
In reply to: [Hueman] Banner in headerHi,
if you would like Adesene to show in the header as on my page https://www.starta-blogg.se – please follow these steps:
Log in to your WordPress account and choose “Appearence” and then “editor” (in swedish “utseende” och “redigerare”)
To the right on your screen locate header.php and click on it!
Locate the row: <?php if ( ot_get_option(‘site-description’) != ‘off’ ): ?><p class=”site-description”><?php bloginfo( ‘description’ ); ?></p><?php endif; ?>
After the above row enter:
<div class=”ads”>
Your Adsense code</div>Now the ad will hopefully show up in your header. If you would like to adjust the position of the ad your have to ad some code to your css-file.
Either your have a child CSS-file or you do a “quick-fix” and add the code directly to the style.css file.
.ads {
display: block;
float: right;
margin-right: 5px;
margin-top: 0px;
}Adjust margin-right and margin-top to your needs (from -100px to 100px).
Good luck!
Forum: Themes and Templates
In reply to: [Hueman] Google Adsense Ad in HeaderHi,
if you would like Adesene to show in the header as on my page https://www.starta-blogg.se – please follow these steps:
Log in to your WordPress account and choose “Appearence” and then “editor” (in swedish “utseende” och “redigerare”)
To the right on your screen locate header.php and click on it!
Locate the row: <?php if ( ot_get_option(‘site-description’) != ‘off’ ): ?><p class=”site-description”><?php bloginfo( ‘description’ ); ?></p><?php endif; ?>
After the above row enter:
<div class=”ads”>
Your Adsense code</div>Now the ad will hopefully show up in your header. If you would like to adjust the position of the ad your have to ad some code to your css-file.
Either your have a child CSS-file or you do a “quick-fix” and add the code directly to the style.css file.
.ads {
display: block;
float: right;
margin-right: 5px;
margin-top: 0px;
}Adjust margin-right and margin-top to your needs (from -100px to 100px).
Good luck!
Forum: Themes and Templates
In reply to: [Hueman] Google ads display near topHi,
if you would like Adesene to show in the header as on my page https://www.starta-blogg.se – please follow these steps:
Log in to your WordPress account and choose “Appearence” and then “editor” (in swedish “utseende” och “redigerare”)
To the right on your screen locate header.php and click on it!
Locate the row: <?php if ( ot_get_option(‘site-description’) != ‘off’ ): ?><p class=”site-description”><?php bloginfo( ‘description’ ); ?></p><?php endif; ?>
After the above row enter:
<div class=”ads”>
Your Adsense code</div>Now the ad will hopefully show up in your header. If you would like to adjust the position of the ad your have to ad some code to your css-file.
Either your have a child CSS-file or you do a “quick-fix” and add the code directly to the style.css file.
.ads {
display: block;
float: right;
margin-right: 5px;
margin-top: 0px;
}Adjust margin-right and margin-top to your needs (from -100px to 100px).
Good luck!
Thanks Alex, looks like a good start!
I will give it a try and share it in this thread later on for everybody to use and implement if they like…
Forum: Themes and Templates
In reply to: [Hueman] Adsense in header & exclude categories from home pageHi GreenGrizls!`
If you go to Theme Options > Sidebar, go and add a new area. Let’s say you name the ID “header-ads”.When you’ve saved and created the area, go to edit header.php with a child theme and add:
<?php dynamic_sidebar('header-ads'); ?>
on my page https://www.starta-blogg.se I put the code like this
<div class="group pad"> <?php echo alx_site_title(); ?> <?php if ( !ot_get_option('site-description') ): ?><p class="site-description"><?php bloginfo( 'description' ); ?></p><?php endif; ?> <?php dynamic_sidebar('header-ads'); ?> </div>
Then I used a couple of
& nbsp;?
to adjust it!Good luck!
Forum: Themes and Templates
In reply to: [Hueman] how do i add widget area right of the logo in header?Hi,
You should create a child theme. However I just put the code directly in header.php. Bar in mind that the modification might be erased next time you update the theme.
I put the code like this :
<div class="group pad"> <?php echo alx_site_title(); ?> <?php if ( !ot_get_option('site-description') ): ?><p class="site-description"><?php bloginfo( 'description' ); ?></p><?php endif; ?> <?php dynamic_sidebar('header-ads'); ?> </div>
Then i used some & nbsp; before the ad code to adjust the position of the ad. Not the best solution, but works and the ad have already perfomed very well!! ??
Look at my sample: https://www.starta-blogg.se
Forum: Plugins
In reply to: [Ad Injection] Error message: Notice: Undefined variableProblem solved. Uninstalled all my other plugins( about 20). Then I re-installed them one by one to see if the error would accour again. It did with one of my rss-related plugins. Deleted it and now Ad-injection is working nicely at my page https://www.starta-blogg.se. Thanks, now I think the plugin is awesome!
Forum: Themes and Templates
In reply to: [Hueman] how do i add widget area right of the logo in header?What a great theme – I love it!
Was thinking of adding a ad unit to my header. Google -> this page -> the solution -> now working at https://www.starta-blogg.se
Took me 5 minutes! Thank you Alexander!
Forum: Plugins
In reply to: [Ad Injection] Error message: Notice: Undefined variable<!–
ADINJ DEBUG
Ad Injection in-content injections complete!
No random ad defined in any of the ad code boxes
Content length=538 (words) Raw character length=6081 Paragraph count=22
Top ad paragraph: 0
Bottom ad paragraph: 22
1st Injected random ads range starts at: 1, and ends at: 22
2nd Injected random ads range starts at: 1, and ends at: 21
potential_random_ad_paragraphs:21
requested_num_rand_ads_to_insert:0
No random ads enabled on this post
Warning: No random ad injection positions
$adinj_total_top_ads_used=1
$adinj_total_random_ads_used=0
$adinj_total_bottom_ads_used=1
random ads start=anywhere – paragraph – 1
random ads end=anywhere – paragraph – 20 fromstart
posttype=page ( page)
currentdate=1390928567 (16098.7102662)
postdate=1388526237 (16070.9055208)
injection mode=mfunc
–>