[SOLVED] How to add banner above the slider?
This is my site: http://asianstarsid.com/
I want the same banner (that is currently below the slider and in the footer) between the slider and the grey area that says Blog. How do I do that? |
Looks like you already figured it out, because I see the same banner above and below the slider.
|
I guess it takes a while for the banner to appear after the change, but the banner that I had on the footer disappeared. How do I include that?
|
I see ad's in all three sites, though the site loads slow, you might reduce the number of posts being shown.
|
ok thx for the tip. how do i put ads between the 2nd and 4th post?
|
Quote:
Take a look at this thread. You should be able to use jQuery to position your ads after certain posts. |
i'm trying to put an ad before the 3rd post
added this to index.php like in the above thread: <div class="Ads_Widget"><?php dynamic_sidebar( 'Ads_firstpost_widget' ); ?></div> Bottom field: <script> jQuery(document).ready(function($){ // Make a copy of the Ads DIV and insert it after the second post $(".type-post:second").after($(".Ads_Widget").clone()); // Remove the last ad widget from its current location $(".Ads_Widget:last").remove(); }); </script> the ad shows up after the last post. what am i doing wrong? |
Where did you come up with the selector "second"?
Try changing the ".type-post:second" to something that is valid. There is a solution, you need to use "div.type-post:xxxxxxxx" where xxxxxxxx is a valid selector. Now for your homework. Go to http://www.w3schools.com/jquery/jque..._selectors.asp and find a selector that will work. |
Congratulations, it looks like you got it to work. In fact, I now see two ad banners between your posts.
|
Thanks, I got the ads to work. Another question, how do I place ads at the bottom of the comments section?
For clarification, I want something like this page: http://www.allkpop.com/article/2015/...iu-jypark-more There's an ad above the "The End" label. |
Oh, how do you get ads above and below the comment box?
|
Where do I place interstitial and popunder ads? Do I need separate widgets for those?
|
Just add a widget area where you want the ad.
However, I'd advise about putting in too many ad's. 1) If a site has more than a couple, people get annoyed (I never go back to a site with too many) 2) I don't look at the ad's on sites anyway and 3) too many ad's will slow the load of the site and prople won't come back |
As Juggledad mentioned, just place a new widget area where you want the ad to appear. You have already modified index.php, which displays the blog page (and any archive page). The other two main templates that you want to look at are:
Code:
<?php comments_template( '', true ); ?> For interstitial or pop-under ads, if all you need to do is insert some JavaScript, then just add a text widget to one of your existing widget areas and insert your JavaScript into it (leave the title blank so the widget itself doesn't show up in the widget area). I will echo Juggledad's concern that sites which display a lot of ads usually don't get a lot of repeat visitors, especially if the ads make it difficult to navigate the site. For example, I tried going to one of your posts and it took me three tries to get there because I kept getting pop-ups instead of the post the first two times. |
ok i will test different ads and see over the next week.
is there anyway to change the size of the featured image that appears before you click on the full post? Right now it's 620x180 and I always include the person's face but sometimes I feel the image size is not big enough and is there any plugin that can crop photos in that ratio in an instant and make it clear? Right now I am using Post Thumbnail Editor to make featured images but the image doesn't show up anywhere near HD quality. |
Also when I go to your site I get a malicious script warning.
|
The latest version of Montezuma added support for the the_post_thumbnail() function.
Go to your index.php sub-template and you should see this line: Code:
<?php bfa_thumb( 620, 180, true, '<div class="thumb-shadow"><div class="post-thumb">', '</div></div>' ); ?> You can use the the_post_thumbnail() function instead, which should enable you to use a higher resolution thumbnail: Code:
<?php the_post_thumbnail(); ?> Code:
<div class="thumb-shadow"><div class="post-thumb"> If you also want your visitors to be able to click on the thumbnail to go to the post, look up a few lines in index.php and you should see the code for displaying the permalink anchor, which you can copy to surround the thumbnail. |
thanks i will look into that. i saw this in a couple of my posts in the front page. how do i fix this?
http://i.imgur.com/NtARtma.png |
The Comments string is coming from your Disqus comment plugin.
|
Thanks, fixed it. how do i make a mobile version of my site?
|
Montezuma is responsive. Nothing needs to be done.
|
As Larry mentioned, the Montezuma theme is responsive so it should look fine on a mobile device. However, the two banner ads at the top of the site and the one banner ad in the footer are keeping the page from sizing properly because they have their width set to 728px. So, you can either change the banner ads to something that's narrower, or you can add a media query in your CSS to hide them when the screen width is the size of a cell phone:
Code:
/* Hide banner ads when screen width goes below 420px */ |
how do I hide the mobile ads on desktop?
|
I'm currently using the Advanced Ads plugin to hide the mobile ads on the desktop theme. is it better this way because i don't know code?
|
I would say that if the plugin works, then it's fine to use.
|
All times are GMT -6. The time now is 06:58 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.