Hello, I am currently with an ad company that uses DFP and when their ads don’t show I have my backup google adsense ads come in. In order for these ads to display, I was told I need to add the following code within the <HEAD>:
<script type='text/javascript'>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
(function() {
var gads = document.createElement('script');
gads.async = true;
gads.type = 'text/javascript';
var useSSL = 'https:' == document.location.protocol;
gads.src = (useSSL ? 'https:' : 'http:') +
'//www.googletagservices.com/tag/js/gpt.js';
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(gads, node);
})();
</script>
<script type='text/javascript'>
googletag.cmd.push(function() {
googletag.defineSlot('/158056972/sneakerfiles_300x250_ROS', [300, 250], 'div-gpt-ad-1424368342288-0').addService(googletag.pubads());
googletag.defineSlot('/158056972/sneakerfiles_300x600_ROS', [300, 600], 'div-gpt-ad-1424368342288-1').addService(googletag.pubads());
googletag.defineSlot('/158056972/sneakerfiles_728x90_ROS', [728, 90], 'div-gpt-ad-1424368342288-2').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
Then in the ad spots I wanted I would ad code like this:
<!-- sneakerfiles_ros_160x600 -->
<div id='div-gpt-ad-1405608165645-0' style='width:160px; height:600px;'>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1405608165645-0'); });
</script>
</div>
<!-- sneakerfiles_ros_300x250 -->
<div id='div-gpt-ad-1405608165645-1' style='width:300px; height:250px;'>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1405608165645-1'); });
</script>
</div>
<!-- sneakerfiles_ros_728x90 -->
<div id='div-gpt-ad-1405608165645-2' style='width:728px; height:90px;'>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1405608165645-2'); });
</script>
</div>
I can’t seem to find the <HEAD> tag. I looked in header, but it’s just one line of code (in Child theme) same for the non-child theme.
Even if I add the top piece of code with one of the bottom in the ad panel under themes, they don’t display. How can I achieve this?
Thanks,
Hi,
It should work also in your case – http://screencast.com/t/IQrlfVNA
Please note that if you use child theme the modules files can’t be overwritten via child theme. Until then please make you change in the main theme file as we have changed the child theme system (for which we will have a documentation available soon) and because of that those files cannot be overwritten.
Thanks!
Hello Alin,
For method one, I removed the <?php echo $this->get_date();?> from every module, but still shows.
When I add the code you shared:
.page .td_module_wrap .meta-info {
display: none;
}
Not only does it remove the post titles on block 14 (we are using it as a slider), but you can see it load then disappear.
To fill you in, I am using a child theme, based off the main theme. You can see it live here:
http://www.sneakerfiles.com/oncourt/
Also the URL is a demo site we will eventually move to the homepage (sneakerfiles.com) so if that helps anything…
Hi,
I have checked your site and did not found any issues with search button – http://screencast.com/t/ZwVki5LmtSGp
About the other issue I’m not sure what did you changed in the functions file, but I guess that you solved that issue if the search appear properly in your menu.
Also please note that we have changed the child theme system (for which we will have a documentation available soon) and because of that at the moment some files can’t be overwritten via child theme. Until then please make you change in the main theme file.
Thanks!
And it is happening with my child theme….. if I activate the new parent theme then it appears fine. Please help, it’s urgent.
thank you
I just send you an email with the subject “help with menu font”
unfortunately I wasn’t able to resolve this
I change the css as you suggested but did no difference
I don’t know what
–“On your site on firefox I found this css errors: http://screencast.com/t/7LziNj802yT which even if they indicate an error to the open sans font it could indicate a common issue of using fonts.–”
means and how to fix it
I would like to have a child theme as it is easier to make the updates
Thank you
Zoe
Hi,
1. You can search for tutorials online on how to use the console: https://developer.chrome.com/devtools/docs/console – this is for Chrome, you can find for other browser’s also.
2. I’ve also tested this on my theme install however without using a child theme, in the main theme and found no issues when setting the Roboto font on the main menu items. I’ve tried your configuration: http://screencast.com/t/3L9rANhvuNg and the result on firefox is the right one: http://screencast.com/t/uWw6buLyow so I suggest you also test this using the main theme and see how it goes.
On your site on firefox I found this css errors: http://screencast.com/t/7LziNj802yT which even if they indicate an error to the open sans font it could indicate a common issue of using fonts.
I also suggest you alter the custom css you sue for tablets and don’t set the font family just the font size, like this:
@media (min-width: 768px) and (max-width: 1023px) {
.sf-menu > .td-menu-item > a {
font-size:12px !important;
}
.sf-menu > li > a {
font-size:12px !important;
}
}
If you still can’t manage to solve this please send us an email at contact@tagdiv.com and provide you wp-admin login details so we can have a closer look at this. Also include a link to this tread into your message, we will check it as soon as possible and get back with an answer.
Thanks
Hi,
As noted on several topics the “child theme”/files overwrite system for modules/blocks/headers.. has been changed within latest theme updates, it will be api based. Form next theme version we expect to have the documentation for this ready and available.
Besides this we will fix other reported issues, no other new features. We haven’t decide on anything yet.
Thanks
1. it’s been loading fine for now if I will see the same problem I will try and follow the steps you suggested
although I would’t know how to check the browser console for errors…
2. http://www.screencast.com/t/niDE75yAKxB
and I also have in the child theme css
@media (min-width: 768px) and (max-width: 1023px) {
.sf-menu > .td-menu-item > a {
font-family: ‘Roboto Condensed’, sans-serif ! important;
font-size:12px !important;}
.sf-menu > li > a {
font-family: ‘Roboto Condensed’, sans-serif ! important;
font-size:12px !important;}
}
Hi,
First please make a backup to your current theme installation if you update so in case something goes wrong you can revert back to it. Major change was in version 3.7 so this isn’t affect you.
Please follow our guide to update and use ftp method: https://forum.tagdiv.com/how-to-update-the-theme/ also please update plugins that come with the theme’s files-you can find them in /plugins folder. Also you will have to update the child theme to the current version.
You can take look here and you will find all changes till current version: http://themeforest.net/item/newspaper/5489609 or you can find update log file in the theme’s files that you downloaded from themeforest – http://screencast.com/t/d0AsC4FWlQe4
Thanks!
Hi,
I was checking in with a client to make sure they had updated WP core and plugins due to security vulnerabilities. See that they have also not updated theme and are at Version: 4.2 with a Child Theme.
I want to update them to the latest version of the them but wanted to check first to see if anything special I should be aware. Where can I find the changelog for all of the version updates? Also, in the “how to update the theme” documentation it mentions “How to update Newspaper from V2 to V3” – is 4.2 V2 or V3?
Thanks!
Thank you!
It works, but partly. As i found out the thing is i use ads which have to have kind of unic id so one ad can’t be shown on the same page more then 1 time. So i had to add 3 scripts in the custom ad fields in theme panel and i’m run out of free fields now:)
Is there any way i can add more than 3 custom ads?
About ads in category between description and posts i still can’t figure out how to do it with do_shortcode() function… Could you please provide a bit more information?
For now i just added my ad script in file category.php after this
default:
echo td_page_generator::wrap_start();
?>
<div class=”span8 column_container”>
<?php
//load the author box located in – parts/page-category-slider.php – can be overwritten by the child theme
locate_template(‘parts/page-category-slider.php’, true);
?>
It shows up in the place i need, but i’m not sure if it’s right to do it this way..
Thank you in advance!
Hi,
We have changed the child theme system (for which we will have a documentation available soon) and because of that at the moment parts files can’t be overwritten via child theme. Until then please make you change in the main theme file.
You can also change the header style 8 if it is more easy for you with this code – http://pastebin.com/8Cp3ZnhA
And apply this css code in Theme Panel > Custom Css, I have tested and it works fine(is better also on tablets)- http://screencast.com/t/dqtb7Mir45p – http://screencast.com/t/Nuxb3Fj1Cnb
@media (min-width: 768px){
.td-header-style-8 .td-header-sp-ads {
width: initial;
}
.td-header-style-8 .td-header-sp-logo {
width: initial;
}
}
@media (min-width: 1024px) {
.td-header-style-8 .td-header-sp-logo {
margin-top: 20px;
}
}
I think that this is better solution because don’t need to add a fixed width(1021px) – it is already added. Just need to add minor css adjustments.
Thanks!
thanks… followed your procedure, but the menu and top header area is not full width, which is what we want, but keep the logo and ad side by side.. a wondering if its because the header style 1 in the child theme folder is not overriding it.. I made the change in the child theme instead of the parent theme..
-
This reply was modified 11 years by
theankhlife.
Try fresh install of theme and visual composer, no child theme, all plugins off except visual composer, clear caching, at least 128mb for php.
Hello
I’m currently running a child version of newspaper theme 4.6
What’s the recommended procedure to update newspaper ?
Site Speed test results: Pagespeed Insight
Hi,
I’m trying to improve the speed of the site, my mobile speed results are currently only 40/100
I’ve got Gzip on, I’m running Total Cache, I’ve compressed all images with EWWW
I have tried the TagDIV speed booster plugin with the steps outlined on this page
However, the list it produced didn’t seem to correlate with the actual page insight results (with the exception of a couple)
list:
registered scripts
jquery |
hide-this-part-js | http://gadgetviper.com/blog/wp-content/plugins/hide-this-part/js.js
common | /wp-admin/js/common.min.js
admin-bar | /wp-includes/js/admin-bar.min.js
utils | /wp-includes/js/utils.min.js
svg-painter | /wp-admin/js/svg-painter.js
wp-auth-check | /wp-includes/js/wp-auth-check.min.js
devicepx | http://s0.wp.com/wp-content/js/devicepx-jetpack.js
wpseo-admin-global-script | http://gadgetviper.com/blog/wp-content/plugins/wordpress-seo/js/wp-seo-admin-global.min.js
td-wp-admin-general | http://gadgetviper.com/blog/wp-content/themes/Newspaper/wp-admin/js/general.js
td-wp-admin-panel-js | http://gadgetviper.com/blog/wp-content/themes/Newspaper/wp-admin/js/wp-admin-panel.js
thickbox | /wp-includes/js/thickbox/thickbox.js
registered styles
admin-bar | /wp-includes/css/admin-bar.min.css
wpar-style | http://gadgetviper.com/blog/wp-content/plugins/wp-reviews/css/style_admin.css
font-awesome-styles | http://gadgetviper.com/blog/wp-content/plugins/wp-reviews/inc/font-awesome/assets/css/font-awesome.min.css
wprs-admin | http://gadgetviper.com/blog/wp-content/plugins/wp-rich-snippets/assets/css/style_admin.css
colors | 1
ie | /wp-admin/css/ie.min.css
wp-auth-check | /wp-includes/css/wp-auth-check.min.css
responsive-lightbox-lite-admin | http://gadgetviper.com/blog/wp-content/plugins/responsive-lightbox-lite/assets/css/admin.css
google-font-ubuntu | http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic&subset=latin,cyrillic-ext,greek-ext,greek,latin-ext,cyrillic
td-wp-admin-td-panel-2 | http://gadgetviper.com/blog/wp-content/themes/Newspaper/wp-admin/css/wp-admin.css
wp-color-picker | /wp-admin/css/color-picker.min.css
thickbox | /wp-includes/js/thickbox/thickbox.css
wpalchemy-metabox | http://gadgetviper.com/blog/wp-content/themes/Newspaper/wp-admin/content-metaboxes/meta.css
bws-admin-stylesheet | http://gadgetviper.com/blog/wp-content/plugins/captcha/bws_menu/css/general_style.css
font-awesome | http://gadgetviper.com/blog/wp-content/plugins/js_composer/assets/lib/font-awesome/css/font-awesome.min.css
jetpack-icons | http://gadgetviper.com/blog/wp-content/plugins/jetpack/css/jetpack-icons.min.css
Skip to main content
Page Insight:
JS (8)
http://gadgetviper.com/blog/wp-includes/js/jquery/jquery.js?ver=1.11.2
http://gadgetviper.com/blog/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1
http://gadgetviper.com/blog/wp-content/plugins/wp-reviews/js/user-rating/jquery.rating.pack.js?ver=4.2
http://gadgetviper.com/blog/wp-content/plugins/wp-reviews/js/user-rating/custom.js?ver=4.2
http://gadgetviper.com/blog/wp-content/plugins/wp-reviews/js/colorbox/jquery.colorbox-min.js?ver=4.2
http://gadgetviper.com/blog/wp-content/plugins/responsive-lightbox-lite/assets/nivo-lightbox/nivo-lightbox.min.js?ver=4.2
http://gadgetviper.com/blog/wp-content/plugins/responsive-lightbox-lite/assets/inc/script.js?ver=4.2
http://gadgetviper.com/blog/wp-content/plugins/revslider/rs-plugin/js/jquery.themepunch.tools.min.js?ver=4.6.5
CSS (27)
http://gadgetviper.com/…dburner-form/control/fbstyle.css?ver=4.2
http://gadgetviper.com/…assets/css/bootstrap_tab.min.css?ver=4.2
http://gadgetviper.com/…s/css/bootstrap_dropdown.min.css?ver=4.2
http://gadgetviper.com/…tabs/assets/css/res_tab_icon.css?ver=4.2
http://gadgetviper.com/…ns/wp-reviews/css/flexslider.css?ver=4.2
http://gadgetviper.com/…nt/plugins/captcha/css/style.css?ver=4.2
http://gadgetviper.com/…t-form-plugin/css/form_style.css?ver=4.2
http://gadgetviper.com/…/nivo-lightbox/nivo-lightbox.css?ver=4.2
http://gadgetviper.com/…htbox/themes/default/default.css?ver=4.2
http://gadgetviper.com/…der/rs-plugin/css/settings.css?ver=4.6.5
http://gadgetviper.com/…views/css/user-rating/rating.css?ver=1.0
http://gadgetviper.com/…eviews/css/colorbox/colorbox.css?ver=1.0
http://gadgetviper.com/…/jquery-ui-1.10.3.custom.min.css?ver=1.0
http://gadgetviper.com/…plugins/wp-reviews/css/style.css?ver=4.2
http://gadgetviper.com/…wp-reviews/css/bootstrap.min.css?ver=4.2
http://gadgetviper.com/…ppets/assets/css/style_front.css?ver=4.2
http://gadgetviper.com/…ets/assets/css/bootstrap.min.css?ver=4.2
http://gadgetviper.com/…ns/wp-pagenavi/pagenavi-css.css?ver=2.70
http://gadgetviper.com/…/assets/css/font-awesome.min.css?ver=1.0
http://gadgetviper.com/…esome/css/font-awesome.min.css?ver=4.4.2
http://gadgetviper.com/…/plugins/jetpack/css/jetpack.css?ver=3.5
http://gadgetviper.com/…content/plugins/hide-this-part/style.css
http://fonts.googleapis.com/…ed:400italic,700italic,400,700?ver=4.6.2
http://gadgetviper.com/…form-7/includes/css/styles.css?ver=4.6.2
http://gadgetviper.com/…nal/bootstrap/td-bootstrap.css?ver=4.6.2
http://gadgetviper.com/…emes/Newspaper-child/style.css?ver=4.6.2
http://gadgetviper.com/…og/wp-content/themes/Newspaper/style.css
I’m wondering are able to provide a list of corresponding id’s for some of the above that I can try adding to the td-speed-booster.php file or should I just take every ID from the list and paste them into the speed-booster.php?
Any suggestions you can make would be greatly appreciated, I was considering trying Better Wordppress Minify Not sure is it’s compatible with the theme or not?
Cheers
Updated my theme from 1.5 to 1.7.1 today and am getting a blank page! I made sure I updated the plugins (Social and VC) as well as overwrote the child theme. The backend is working fine but not the front. The site is http://www.tbreak.com
Hi,
Sorry for the encountered issue, do you use a child theme? if you do make sure you check the custom code added in it. The error specifies that you try to declare a function which has already been declared.
If you cannot find the cause please send an email at contact@tagdiv.com , paste a link to this thread and provide wp-admin so i can take a look.
Thank you, Emil G.
Hi,
You are right, that would be ideal however, unfortunately not all theme files can be overwritten via child theme using current theme version however as Alin also noted the we’re currently working on a API documentation which will replace the child theme system from Newspaper 5 theme version which we expect it to be ready and released within next month.
Please note that the file you want to overwrite using the child theme, td_wordpres_booster.php, is a theme core file which isn’t indicated to be overwritten with the child theme as being a part of theme’s core it will be updated regularly meaning that you would need to adjust your modifications each time it updates according to the changes made to it making a child theme not quite necessary.
With that in mind I’ve also looked at the twentyfifteen wordpress default theme which based on its code, it hasn’t been built so that its core files can be overwritten using a child theme: http://screencast.com/t/13rYDaI3 – http://screencast.com/t/aJnfOP9qQF
If you need this functionality and you can’t use the theme we understand and we can offer you a refund, just send an email at contact@tagdiv.com , paste a link to this conversation and we’ll discuss the details.
Sorry for the inconvenience!
Thanks
If ANY file in a theme is not overridable by a child theme file then it does NOT support Child themes in the true sense of the WP definition and cannot be advertised as such. Naturally, our strong recommendation would be to adhere to standard WP Child Theme standards and ensure that ALL files which render output are able to be overridden by child theme files.
In the practical sense… if you dont do this, then we will forever be stuck on making sure we carry over our customizations to those files at the parent level so that they survive any theme updates even if we’re making most of the customizations in the child and this isn’t marketed correctly.
Hi,
Unfortunately theme doesn’t have a block like that, you will need custom work to achieve that. You can try to this via custom css – http://screencast.com/t/qkAV0a6CMg9r
.home .td_block_11 .td-block-span12:nth-child(2n) .td_module_10 .td-module-thumb {
float: right !important;
}
.home .td_block_11 .td-block-span12:nth-child(2n) .td_module_10 .item-details {
margin-left: 10px;
}
.home .td_block_11 .td-block-span12:nth-child(2n) .td_module_10 .item-details .td-module-comments {
float: left;
}
Please note that this is an example for Block11 for homepage, you can try to do the same for another block that you use. If you don’t have basic css/html experience I suggest to hire a freelancer to make this for you as for the moment we cannot provide custom work, sorry!
Hope this helps!
I have to install a child theme?? I just installed the instalable file in wordpress, but in the full file I found a child theme.
Hi,
We work on API documentation for Newspaper 5 and we will change the child theme system. But this file will be modified in (almost) each update so I cannot tell you exactly if this file can be overwritten by child theme.
Thanks!