Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] How to add banner above the slider?


  #1  
Old Jul 2, 2015, 01:33 AM
AsianStarsID
 
27 posts · Jul 2015
New York
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?
  #2  
Old Jul 2, 2015, 03:50 AM
CrouchingBruin's Avatar
CrouchingBruin
 
299 posts · Aug 2010
Santa Monica, CA
Looks like you already figured it out, because I see the same banner above and below the slider.
__________________
My Montezuma-themed sites: ESHS Girls Basketball Team, Venice Hongwanji Buddhist Temple
Please consider making a donation to BytesForAll for their great themes!
  #3  
Old Jul 2, 2015, 11:00 AM
AsianStarsID
 
27 posts · Jul 2015
New York
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?
  #4  
Old Jul 2, 2015, 01:22 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I see ad's in all three sites, though the site loads slow, you might reduce the number of posts being shown.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jul 3, 2015, 11:46 PM
AsianStarsID
 
27 posts · Jul 2015
New York
ok thx for the tip. how do i put ads between the 2nd and 4th post?
  #6  
Old Jul 4, 2015, 03:27 AM
CrouchingBruin's Avatar
CrouchingBruin
 
299 posts · Aug 2010
Santa Monica, CA
Quote:
ok thx for the tip. how do i put ads between the 2nd and 4th post?
Do you mean an ad before the third post and an ad after the third post?

Take a look at this thread. You should be able to use jQuery to position your ads after certain posts.
__________________
My Montezuma-themed sites: ESHS Girls Basketball Team, Venice Hongwanji Buddhist Temple
Please consider making a donation to BytesForAll for their great themes!
  #7  
Old Jul 4, 2015, 09:03 PM
AsianStarsID
 
27 posts · Jul 2015
New York
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?
  #8  
Old Jul 5, 2015, 08:14 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Jul 8, 2015, 11:32 AM
CrouchingBruin's Avatar
CrouchingBruin
 
299 posts · Aug 2010
Santa Monica, CA
Congratulations, it looks like you got it to work. In fact, I now see two ad banners between your posts.
__________________
My Montezuma-themed sites: ESHS Girls Basketball Team, Venice Hongwanji Buddhist Temple
Please consider making a donation to BytesForAll for their great themes!
  #10  
Old Jul 11, 2015, 08:20 PM
AsianStarsID
 
27 posts · Jul 2015
New York
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.
  #11  
Old Jul 11, 2015, 08:38 PM
AsianStarsID
 
27 posts · Jul 2015
New York
Oh, how do you get ads above and below the comment box?
  #12  
Old Jul 11, 2015, 11:03 PM
AsianStarsID
 
27 posts · Jul 2015
New York
Where do I place interstitial and popunder ads? Do I need separate widgets for those?
  #13  
Old Jul 12, 2015, 11:06 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #14  
Old Jul 13, 2015, 01:31 AM
CrouchingBruin's Avatar
CrouchingBruin
 
299 posts · Aug 2010
Santa Monica, CA
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:
  1. single.php - this main template is used to display a single post.
  2. page.php - this main template is used to display a non-post page.
This code line displays the comment section:
Code:
<?php comments_template( '', true ); ?>
So place your new widget area either before or after this line, or in both places.

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.
__________________
My Montezuma-themed sites: ESHS Girls Basketball Team, Venice Hongwanji Buddhist Temple
Please consider making a donation to BytesForAll for their great themes!
  #15  
Old Jul 14, 2015, 07:27 PM
AsianStarsID
 
27 posts · Jul 2015
New York
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.
  #16  
Old Jul 15, 2015, 03:11 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Also when I go to your site I get a malicious script warning.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #17  
Old Jul 16, 2015, 12:20 AM
CrouchingBruin's Avatar
CrouchingBruin
 
299 posts · Aug 2010
Santa Monica, CA
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>' ); ?>
This line of code displays the thumbnail in the 620x180 px dimensions, although, as you've noticed, it's a low resolution image (loads faster).

You can use the the_post_thumbnail() function instead, which should enable you to use a higher resolution thumbnail:
Code:
<?php the_post_thumbnail(); ?>
If you want the same grayscale-to-color effect, then surround that line of code with the thumb-shadow and post-thumb <div>s like this:
Code:
<div class="thumb-shadow"><div class="post-thumb">
  	<?php the_post_thumbnail(); ?>
</div></div>
Please consult the Wordpress codex on the the_post_thumbnail() function to see additional parameters which you can pass to the function, for example, how to pick a particular thumbnail size.

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.
__________________
My Montezuma-themed sites: ESHS Girls Basketball Team, Venice Hongwanji Buddhist Temple
Please consider making a donation to BytesForAll for their great themes!
  #18  
Old Jul 17, 2015, 10:31 AM
AsianStarsID
 
27 posts · Jul 2015
New York
thanks i will look into that. i saw this in a couple of my posts in the front page. how do i fix this?

  #19  
Old Jul 17, 2015, 04:03 PM
CrouchingBruin's Avatar
CrouchingBruin
 
299 posts · Aug 2010
Santa Monica, CA
The Comments string is coming from your Disqus comment plugin.
  1. Sign in to your Disqus account.
  2. Once you sign in, in the upper right corner of the screen will be a gear icon that you can click for Settings. Click on the gear and click on the Admin menu item.
  3. Click the Settings menu item and select your site.
  4. In the section labeled Comment Count Link, take out the word Comments or Comment from all three fields (leave behind 0, 1, and {num}) and click the [b]Save Changes button at the very bottom.
__________________
My Montezuma-themed sites: ESHS Girls Basketball Team, Venice Hongwanji Buddhist Temple
Please consider making a donation to BytesForAll for their great themes!
  #20  
Old Jul 27, 2015, 02:36 PM
AsianStarsID
 
27 posts · Jul 2015
New York
Thanks, fixed it. how do i make a mobile version of my site?
  #21  
Old Jul 28, 2015, 12:24 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Montezuma is responsive. Nothing needs to be done.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #22  
Old Jul 28, 2015, 02:04 PM
CrouchingBruin's Avatar
CrouchingBruin
 
299 posts · Aug 2010
Santa Monica, CA
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 */
@media only screen and (max-width: 420px) {
   #text-14, #text-16, #text-17 {
   	   display: none;
   }
}
You might also be able to find some sort of banner ad that is responsive to replace them.
__________________
My Montezuma-themed sites: ESHS Girls Basketball Team, Venice Hongwanji Buddhist Temple
Please consider making a donation to BytesForAll for their great themes!
  #23  
Old Jul 29, 2015, 01:35 AM
AsianStarsID
 
27 posts · Jul 2015
New York
how do I hide the mobile ads on desktop?
  #24  
Old Jul 29, 2015, 01:53 AM
AsianStarsID
 
27 posts · Jul 2015
New York
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?
  #25  
Old Jul 29, 2015, 03:31 AM
CrouchingBruin's Avatar
CrouchingBruin
 
299 posts · Aug 2010
Santa Monica, CA
I would say that if the plugin works, then it's fine to use.
__________________
My Montezuma-themed sites: ESHS Girls Basketball Team, Venice Hongwanji Buddhist Temple
Please consider making a donation to BytesForAll for their great themes!

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Someone helps me to insert the JavaScript Slider into WordPress by using Hi Slider? kathie Atahualpa 3 Wordpress theme 1 Sep 9, 2013 08:18 AM
How to replace Atahualpa banner image with gallery/content slider? marsha821 Header configuration & styling 7 Apr 20, 2012 10:10 PM
[SOLVED] Easing Slider Plugin, How to Center Slider in Header netinfused Plugins & Atahualpa 1 Feb 22, 2011 02:22 PM
Need help with CU3ER slider -- there $25 in it for ya! :D kal Customization, Design, Programming... 1 Jan 22, 2011 08:45 AM


All times are GMT -6. The time now is 06:33 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.