- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsDefault Block Settings Guide
- TutorialsOffset Feature
- TutorialsSystem status parameters guide
- TutorialsWhat is Ajax preloading?
- TutorialsHow to Update the WPBakery Page Builder plugin
- TutorialsHow to Install bbPress forum
Hi,
The banners are looking good, when one of the banners or both are from google ads, but when they are not from google, then is showing the problem with the them. They are not in line, one is upper than the other.
About the code I put him in custom css but I don’t see any change. Everything is the same.
Thanks in advance
It worked just perfect.. Thanks Lucian. However, header ad slot doesn’t appear just below navigation. How can I put ad adsense or any other ad just below navigation on all pages?
Thanks again… 🙂
Hi everyone,
I wanted to make one quick reminder to everybody, since in checking some sites to offer help with issues as time permits, I see an awful lot of “theft of intellectual property” going on. Remember, stealing images and text from other websites is a violation of the IP rights of the original content creators, whether it’s a photographer, writer, or company promoting something on their own website.
Beyond DMCA, and general code of ethics in publishing, it’s just plain wrong. Obviously if you’re in a country which is well known for general thievery and no recourse for affected content creators, you might not care.
Be aware, however, that Google does allow a mechanism to “bury” content sites which duplicate content from other sources without permission or licensing of a photo for commercial purposes (if you run ads on your website, it’s a commercial venture). So, if you copy photos and text from site A, that site can now file a ticket with Google to lower your site ranking/page rank for that duplicate content which you didn’t create.
Google can also penalize your site for “low quality content” (meaning if your mix is 90% copied content, and 10% original – it’s considered low quality site).
A photographer who has copyrighted an image and licensed it to a news site (such as AP or other) can claim damages for your use without having to prove damages (again, presuming your country even respects copyright law).
Please keep this in mind when copying images, text, or other elements from websites when you didn’t create the images or content.
Please respect the work of others.
Hi,
Thx, then I need to change post by post.
I have another question, is lightbox doesn’t support Swipe Gesture yet?
It seems need to click next / prev icon to next image.
And I have another problem, it seems a bug.
The inline ads will appear on the gallery.
http://www.screencast.com/t/rnW3lh4rqVT
Hello,
Is it possible for the theme to show a different ad-code depending on where it is displayed?
So for example, if the user is looking at category A, “Header Ad” will show a certain code, and if in category B another?
thanks
I was able to get this figured out so I will place what I figured out here as a reference in case others are also using double click.
First, in your header file you need to use the following code:
<script type=’text/javascript’ src=’//partner.googleadservices.com/gampad/google_service.js’>
</script>
<script type=’text/javascript’>
GS_googleAddAdSenseService(“ca-pub-your google ad sense pubid”);
GS_googleEnableAllServices();
</script>
<script type=’text/javascript’>
GA_googleAddSlot(“ca-pub-your google ad sense pubid”, “DFP inventory name spot1 here”);
GA_googleAddSlot(“ca-pub-your google ad sense pubid”, “DFP inventory name spot2 here”);
GA_googleAddSlot(“ca-pub-your google ad sense pubid”, “DFP inventory name spot3 here”);
GA_googleAddSlot(“ca-pub-your google ad sense pubid”, “rightsidebar_300x250″);
</script>
<script type=’text/javascript’>
GA_googleFetchAds();
</script>
Then in the theme file under the ads setting you place the following code in place:
<div style=”width:300px;height:250px;margin-top:10px;margin-left:auto;margin-right:auto”>
<script type=”text/javascript”>
GA_googleFillSlot(“rightsidebar_300x250”);
</script>
</div>
This works for me.
Hi,
I just moved from adsense to another ad network and since i’m using their ad the page loads really slow. I guess their adserver isn’t as fast as adsense so I want to know how i can move the new ad scripts to the footer so the page will render noramlly again.
Can this be done by using the speedbooster plugin? And are their any conflicts known when enabling tagdivs speedbooster?
Hi,
I posted this on another thread, but believe that is dead so I wanted to make a new one:
Please see this page:
The top ad on the right sidebar should be linked, however only the top part of the image is clickable.
If I move that widget down to the bottom, the entire image becomes clickable. The HTML appears to be correct.
I’ve tried to work around this with an image map, but that doesn’t work either. There must be some class or something that is causing this? Please help, we are to make this site live in 2 days but we are in trouble if the ads are not fully clickable.
Thanks,
Dan
If you’re having trouble optimizing via plugin, I would likely contact your hosting provider and optimize your dbase from phpmyadmin or similar outside of wordpress (e.g., command line, or from server side).
But yes… on a 190MB dbase, WP-Optimize clears out on average about 27.5MB of crap, depending on when you do an optimization.
I think the pagespeed insights reference to browswer caching is having
1) expires headers from the server (or via htaccess on Apache, or config file on nginx), which specify a time to live, such as “cache fonts for one week, don’t reload them every time a page loads” … that is the purpose of “browser caching” — same with CSS, images like a logo, javascript, etc. — my settings are in the sticky for pagespeed.
2) remember to have gzip/deflate running on server side, you don’t need plugin for that as the server can compress everything on request
I’m not currently using W3 cache, and frankly I’d leave that off until you get everything else sorted as otherwise you end up caching incomplete pages from the other errors or overloads. Once EVERYTHING else is solid, THEN you would turn on the cache as the LAST thing in the chain.
Hope that helped a little (been there!). 🙂
-
This reply was modified 12 years by
simchris.
Make sure the server is running deflate/gzip properly, and you have the proper expires headers set, and server side normal caching if so provided, …. compression and expires headers are good for at least 20 points.
Just for a reference point, one of my pages on the test site, with caching plugin turned off, and the disqus, adsense stuff running (3 ad spots), Gravatar, and one YouTube video.
http://ga-ga.com/1763/book-review-anti-americans-star-sons-wichita/
is 90 desktop / 79 mobile
I need to swap out Gravatar for local author image and should shave off 708bytes from the featured image upload (has “red” in it, so didn’t compress as much).
With the gravatar fixed, and if I ignore the “errors” from Disqus and AdSense, it’s totally in a doable range for us.
I think it works out to be 93/83 without the “errors” on there.
Not bad since NOT running any caching plugin, not using CDN, and not using a minification plugin other than mod_pagespeed optimizing the pages on the fly.
-
This reply was modified 12 years by
simchris.
Hi,
The inline ad display after a number of paragraphs, if you want an additional ad you need to customize the code here: http://screencast.com/t/QABtahi1jkr4 but is not easy.
A simple solution if you want another ad in post is to add it manually directly in post using the ad shortcode like: [td_ad_box spot_id="custom_ad_1"]
Also you have in Theme panel settings for top or bottom article ads.
Hope this helps!
Thanks!
Hello all, after updating to 3.9.2, I have Home page only White side, but individually all plugins deactivated without success, please help me. Ah yes, Home funktionirt only with Firefox, all other browsers show only White side. Google page speed test (http://developers.google.com/speed/pagespeed/insights/?url=www.football-eu.com&tab=mobile) reports this error: The URL which fetched, but nothing what rendered. Ensure did the URL points to On HTML pagethat loads successfully in a web browser. Thank you.
SRY for my English its from Google
thanks Lucian
however that isn’t correct – it not custom ad 3 its ARTICLE TOP AD and using the code you gave me adds another ad 3 block above the header text with the words in the loop-single.php shown under.
thanks
Andrew
Hi there,
Wanted to know if it was possible to use <php> in the ad code fields. I want to restrict ads to only display if a visitor comes from a search engine. I’m using this in the functions.php file:
function agentwp_adsforSEvisitors(){
$ref = $_SERVER['HTTP_REFERER'];
$SEs = array('/search?', 'images.google.', 'web.info.com', 'search.', 'del.icio.us/search', 'soso.com', '/search/', '.yahoo.');
foreach ($SEs as $source) {
if (strpos($ref,$source)!==false) return true;
}
return false;
}
And I want to use this surrounding my Google AdSense code:
if (function_exists('agentwp_adsforSEvisitors')) {
if (agentwp_adsforSEvisitors()) {
//INSERT YOUR AD CODE HERE
}
}
Any help with this, or another solution that would accomplish the same thing would be great.
Thanks!
Jason
Here’s a screenshot (from another theme … sorry) that shows more or less what I’d like to see with standard posts when using Module 1 – headline, full-size featured image, excerpt, “Read more” button. If there’s way to accomplish this, that would be super!

Hi Lucian,
Thank you for your quick reply. I have made the changes, the ad appears now after the Disqus plugin but I have another question. How do I remove the article bottom ad now? If I remove the Adsense code from the article bottom probably both ads will disappear.
Please advise,
If the <p> tag has any “style” content, the inline adsense ad doesn not show at all.
Content of many posts are given justified style on my site. Here is the example:
http://www.igeeksblog.com/put-apps-on-the-notification-center-using-weespaces-cydia-tweak/
Is there any way to post Article Top ad slot after number of paragraphs instead of exactly below title?
One more thing, I experience drastic down in CTR and CPC in adsense since I have changed theme to Newspaper. Is there any tip to improve CTR?
Another important thing, Can I block specific third party scripts to load from responsive mobile site?
Hey there,
I’m trying to use the tour section to make a book directory.
Unfortunately it doesn’t display right at all (see here: http://tinypic.com/r/3133nu1/8).
Of course I want the tabs under each other on the left side of the whole column with its content. Is this not the way its set up ?
What is wrong and what can I do?
Or what other way would there be to do this?
My code is this:
[vc_row][vc_column width="1/1"][vc_tour][vc_tab title="Jeff Chang" tab_id="1403338503-1-24"][vc_column_text]
<b>Can’t Stop Won’t Stop: A History of the Hip-Hop Generation</b>
Author: Jeff Chang (& Introduction by DJ Kool Herc)
Published: by Picador in 2005
Pages & Content: 546 pages of academic reading without imagery
Description: The book is more about the cultural resonance of hip hop culture than the musical productions of the genre. Chang did a lot of research for this book so for sure anybody can learn something about the cultural political significance of this movement, that goes deeper than its shining surface.
Buy here: Amazon
[/vc_column_text][/vc_tab][vc_tab title="Tricia Rose" tab_id="1403338503-2-75"][vc_column_text]
<b>Black Noise: Rap Music and Black Culture in Contemporary America (Music Culture)</b>
Author: Tricia Rose
Published: by Wesleyan University Press in 1994
Pages & Content: 257 pages
Description: In this book, Tricia Rose, described as a “hip hop theorist,” takes a close look at the lyrics, music and themes that’s predominant in hip hop, and discuss the most pertinent issues with the debates that surround it. She discuss racial politics, the criticisms of the police and government, and also the sexual politics of rap, misogyny, and female rappers’ critiques of men.
Buy here: Amazon
[/vc_column_text][/vc_tab][vc_tab title="Slide" tab_id="1403339231046-2-10"][/vc_tab][/vc_tour][/vc_column][/vc_row]
livingsmarttv,
Yes it is possible to not crop and only scale images. It gets a bit tricky with this theme though because it is set to crop every image(except the featured.)
In the functions.php file, you will find somewhere around line 320:
//featured image
$td_crop_features_image = td_util::get_option('tds_' . 'crop_features_image');
if ($td_crop_features_image == '') {
add_image_size('featured-image', 700, 0, true);
} else {
add_image_size('featured-image', 700, 357, true);
}
//the small thumbnails
set_post_thumbnail_size( 100, 65, true );
add_image_size('art-thumb', 100, 65, true);
//small height, 1 col wide
add_image_size('art-wide', 326, 159, true);
//medium height 1 col wide
add_image_size('art-big-1col', 326, 235, true);
//the slides
add_image_size('art-slide-small', 326, 406, true);
add_image_size('art-slide-med', 700, 357, true);
add_image_size('art-slide-big', 1074, 483, true);
//big slider - big image
add_image_size('art-slidebig-main', 745, 483, true);
//the gallery
add_image_size('art-gal', 210, 210, true);
Notice that TagDiv has built in the ability to turn cropping on or off on the featured image based on a setting in the theme panel, but you are asking for all of them.
add_image_size('featured-image', 700, 0, true);
In the line above, it is the ‘0’ argument that tells wordpress to adjust the height based on the aspect ratio of the image after it is scaled. To analyze the code a little more, what is happening with the ‘featured-image’ image size is that if them theme is not set to crop option then the ‘featured-image’ will be scaled to 700px wide and left to be however tall the image is. If you select the crop option, it will be scaled to 700px wide and then cropped to 357px tall.
You would need to look at which block(s) you are using and then determine which module the block is using to tell what image size it is. For example, let’s say your block uses td_module_2.php.
In that file, line 13 reads: <?php echo $this->get_image('art-big-1col'); ?>
If we look above at the functions.php entry, we see: add_image_size('art-big-1col', 326, 235, true); This means that if you upload a 1280×720 image, this will resize it’s width and crop it’s height to 235 pixels. If the scaled down image height is less than 235px tall, then it will scale the height to 235px and crop the width to 326px. This is not what you want. Rather, perhaps something like this: add_image_size('art-big-1col', 326, 0, false); This will take the image and scale to 326px wide and let the height be what it will be.
If you want make these changes so that updates to the theme will not break it, then you need to copy the image size declarations out of the theme’s functions.php file and put them in your child theme’s functions.php file and change the options. You might try something like this:
//featured image
$td_crop_features_image = td_util::get_option('tds_' . 'crop_features_image');
if ($td_crop_features_image == '') {
add_image_size('featured-image', 700, 0, false);
} else {
add_image_size('featured-image', 700, 357, false
}
//the small thumbnails
set_post_thumbnail_size( 100, 0, false );
add_image_size('art-thumb', 100, 0, false);
//small height, 1 col wide
add_image_size('art-wide', 326, 0, false);
//medium height 1 col wide
add_image_size('art-big-1col', 326, 0, false);
//the slides
add_image_size('art-slide-small', 326, 0, false);
add_image_size('art-slide-med', 700, 0, false);
add_image_size('art-slide-big', 1074, 0, false);
//big slider - big image
add_image_size('art-slidebig-main', 745, 0, false);
//the gallery
add_image_size('art-gal', 210, 0, false);
By setting all the height arguments to 0, we tell WordPress to always use the full height of an image relative to the horizontal scaling and by changing ‘true’ to ‘false’ we enable ‘soft crop mode’ vs ‘hard crop mode.’ Soft crop mode ensures your images will maintain their aspect and not have any cropping. Note, the 0 setting will make it so that any image uploaded that is not 16×9 aspect will be scaled and output at it’s own aspect ratio. This can break styling, but if you only upload 16×9 images it will be fine.
You would need to either re-build your current thumbnails or upload some new images to see if this fixes your problem(or creates others)
There are lots of gotchas here, and I certainly didn’t give you a definitive answer, but perhaps what I did say will help you figure out what combination of options will solve your problem.
Good luck!
Hi,
Yes, the system works only for Google Adsense, if you use other ad media you need to use this as is mentioned in the ad documentation: https://forum.tagdiv.com/ads/ and this hide the ads via CSS with display:none
<div class="td-visible-desktop">
desktop ad code
</div>
<div class="td-visible-tablet-l">
tablet landscape ad code
</div>
<div class="td-visible-tablet-tp">
tablet portrait ad code
</div>
<div class="td-visible-phone">
phones ad code
</div>
Thank for the message!
h2 tag is optional not required for SEO, only suggested as it’s a second level headline for use on pages/posts … you can use h2 tags anywhere in your pages or posts…
I often use them as subheads below the image in posts, or at top of page.
I generally use h3 tags for section heads in posts, or chapter starts, etc. h3 is also the common level used for sidebars, and various other headline elements in the theme.
Thanks for the reply, Lucian.
Am I right in thinking that that is only for Google Adsense ads?
If I had a custom code from another network, it would load and only be hidden by display:none in the CSS under the correct @media attribute?
Speed Booster Pack
This plugin is a all in one that will give you that 95% score on Google PageSpeed, YSlow, Pingdom and GTmetrix.
The plugin comes with some great features like:
1. Moves scripts to the footer to improve page loading speed.
2. Loads javascript files from Google Libraries rather than serving them from your WordPress install directly, to reduce latency, increase parallelism and improve caching.
3. Defers parsing of javascript files to reduce the initial load time of your page.
4.Removes query strings from static resources to improve your speed scores.
5. Removes extra Font Awesome stylesheets added to your theme by certain plugins, if Font Awesome is already used in your theme.
6. Removes junk header tags to clean up your WordPress Header.
I’m using this plugin as well and it really help removed the rest of those files in render-blocking CSS and JS files.
With this plugin you will not need the other plugin ““Query Strings Remover”…
The plugin name is “Speed Booster Pack” by the author tiguan
You can download this plugin via the wordpress website @ this url
http://wordpress.org/plugins/speed-booster-pack/
Speed Booster Pack – Documentation
@Lukao350
Hi, it’s almost impossible to fully remove all render blocking — most websites need to have some CSS load before the page … otherwise you get a flash of unstyled text – where page starts to load but is messed up, then the CSS loads and corrects – ugly.
So, with full optimization, you typically you will end up with one main CSS file, and one main JS file, as well as the other render blocking stuff will be external files (e.g., fonts from Google) that don’t load in “async” mode. The TagDiv Speed Booster plugin helps a bit – have you tried that yet ?
Hi,
You have to move the code you have added to the loop-single.php file to the single.php file, you will also need to add along with it another code like this: http://screencast.com/t/QUp9iiKE0Z
You have the code that you need to paste in the single.php file here:
echo td_page_generator::wrap_start();
echo do_shortcode('[vc_row][vc_column width="1/1"][td_ad_box spot_id="custom_ad_3"][/vc_column][/vc_row]');
echo td_page_generator::wrap_end();
Keep in mind that you will need to the code that you have added in the loop-single.php file if you chose to paste it from here.
Thank you

