- NewspaperHeader Builder
- NewsmagHeader styles
- NewsmagHeader ads
- NewspaperHeader ads
- NewspaperHeader styles
- Apitd_api_header_style::delete
- Apitd_api_header_style::update_key
- Apitd_api_header_style::update
- Apitd_api_header_style::add
- ApiAPI – Header style – Introduction
- NewspaperSearch setup for custom post type
- NewspapertagDiv Composer – Website Manager
- NewspaperBookmark – Save For Later
- NewspaperWooCommerce: Happy “Add to Favorites!”
- NewspaperModal Popup
- NewspaperFlex Block Settings Guide
- NewspaperPosts Loop Element
- NewspaperHow to Add a Logo in Newspaper
- NewspaperDefault Category Settings
- NewspaperWhen tagDiv Composer is Not Working
Can I add a conditional PHP the header of the site anywhere in the Theme Panel? I want to add this:
<?php if ( in_category('15') ) : ?>
<meta name="googlebot-news" content="noindex, nofollow">
<?php endif ; ?>
So I only want that to appear in the <head> for any posts within that one category so Google does not index it. It seems like no way to do this/ So I can only create a header.php in the child theme to do this?
Hello,
1) How does one edit the text in the demo header that reads “WORLD NEWS” and politics around the globe?
2) How does one replace the image of the statue of liberty on the homepage?
3) Where is the online documentation with instructions to setup this theme?
Thank you.
Hello,
My website is using the jetpack to place ads on the website. However, I’d move the ads on the Top of each page to right below the Main
Menu. As you can see from the image (link):
https://gyazo.com/1a1871d4dc604879be5f89784cc4d085
The ads is occupying a big gap on top of the page. I’d like it to display right
below the Main Menu, (see sample below):
https://gyazo.com/c230a424966d83ca07c5e825696a1f3b
I’ve already contacted the jetpack support to seek further assistance and here is their reply:
“Hello there, Ninh!
When it comes to ads in the header area, the actual placement is dependent on how the theme is designed. In this case, it sounds like the top of the page area is not defined the way you’d like in order to have your ads show below your menu.
The only changes that are available to ad placement are listed on this page under “Controlling ad placement:”
https://jetpack.com/support/ads/
You may have some success in contacting the author of your theme to see if there is anything that can be done to change where the ad at the top of the page will be shown if they look at the source code of your front page.
It looks like your current theme is “Newspaper” by Tagdiv, here is their support center to help get you started:
Once you’ve spoken with them, please let me know if there’s anything I can do from this side to clarify!”
My website is https://gameworld.vn/
I’m looking forward to hearing from you soon. Thank you very much,
Regards,
Ninh Tran
Hi! How I can change the default color for the blocks headers?
Hi José Roberto Monteiro Faria,
That I saw, but you don’t explain what you aspect to do, you wish to have redirect log in in top header, or what?
Maybe you can do that with a plugin like Peter’s Login Redirect ( https://wordpress.org/plugins/peters-login-redirect/ )
Thank you for your understanding.
Hello,
I want it after login sign in to TOP HEADER.
I already did this in the tagdiv_theme file.
https://ibb.co/bYAr4K
but I did not succeed!
Hi Garba,
That can be done just whit custom css
https://www.screencast.com/t/LXMXBFt9u
If you’ll like to try, here is the code from example
.td-header-sp-logo {
background-color: red;
height: 200px!important;
width: 400px!important
}
.td-header-sp-recs{
width: 50%!important;
padding-top: 50px!important;
}
Just paste it in Newspaper>Theme panel> Custom code> Custom css
Thank you.
Hi,
Please try this code:
.td-header-style-10
.td-banner-bg {
height: 5px;
}
You need to go in newspaper > Theme panel > Custom code > Custom css , you can set any value ( 0 will be no margin )
See results: https://www.screencast.com/t/sPBQfHnkl
Thanks.
How can I increase a header height? And the logo there.
I’m using header style 1.
Hello jalewa,
1)There’s an option for it in Theme panel -> Ads section from here -> https://www.screencast.com/t/DtwqfXq5P
2)Unfortunately, the theme does not have any such an option that allows you two different headers for mobile and desktop, sorry! You can try using the Mobile Theme plugin.
3)You should check all the Ads settings from our Panel and if you are using the Mobile Theme you will see there some options for Mobile Ads.
Thanks.
Do you have expiration headers and time to live set in your htaccess file or server settings?
Did you check your post with Chrome audit tools in console?
Hello Tagdiv Team,
In your theme as for ads section there are very few placement…. I want on post page after paragraph 2-3 ads…
1) I want to give condition to show ads after 3rd paragraph, after 6th paragraph and after 9th paragraph.
2) There is one header only… I want we to run header ads different on mobile and different on desktop so how I can manager that.
3) I want placement as above article, middle article, below article and above footer.
*** I want the option as for setting same placement differently for mobile and desktop devices.
Please help me as soon as possible
reply
Hello Mizann,
So, if you want to have this style -> https://www.screencast.com/t/aykSjbrwEJ9 you should choose the Header Style 10 and replace the source code of this header style with the following code from here -> https://pastebin.com/8RDw7CR2
Hope this helps!
Thanks for your understanding!
Hi,
If you refer to header template ( https://www.screencast.com/t/gNHtT6U1hH ) , you can use one of the 3th multi-purpose, you can edit it from newspaper > theme panel > multi-purpose ( https://www.screencast.com/t/HtHh1it2GSUY ) .
The font from youtube player can be change only with custom css ( https://www.screencast.com/t/H8YMOdl7EgSZ ).
Thank you.
Hi,
1. You could select a block header style which features a center aligned block title. For example this one
– https://demo.tagdiv.com/newspaper/block-header-6/
If you mean the post titles in modules, you could use some CSS. For example this code will apply for block 4 only
– https://www.screencast.com/t/MfE8pedH
.td_block_4 .td_module_2 .entry-title {
text-align: center;
}
CSS codes can be entered in Theme panel->Custom code – CSS section.
2. Block 10 on a full row will display like this
– https://demo.tagdiv.com/newspaper/block-10/
These predefined blocks will always look like they are designed to.
However you could use a flex block, set one module per row, hide the image and excerpt and center align it (flex block 1 used in this example)
– https://www.screencast.com/t/IWTlEc3mKaq
The flex blocks are highly customizable, default blocks can only display in a predefined way. Experiment with these blocks and you should obtain the result you want.
Thanks
Hi,
Please check in Newspaper > Theme panel > Theme Fonts > header and set transform to none for your main ( https://www.screencast.com/t/b6GA3NVc7RA ) see if underline disappear, if not please check if you have some custom css set in Newspaper> theme panel > custom code .
If the problem persist, please provide your website url for a closer inspection.
Thank you.
Hi mateusnds,
Please check in Newspaper >theme panel > header> in Logo for mobile and Logo & Favicon to have set the logo ( https://www.screencast.com/t/RGw3nrBPzHM )
Thank you.
Hey Catalin,
thanks for your reply. Im AWARE that these are 2 different things. And as i wrote its working for me. The only thing i want from you guys is a php code snipped which i can put into my new page-template to show the author box + item scope meta tags on the page w that template.
I dont care if its not pefect codewise or if i cant use your backand funktions on that particular page-template that i have copy+pasted from the post-template-7. it looks as i want it on the front end and google can flawlessly read it – enough for me.
What i dont want is to build or check other templates whith editior … it would just take me hours to get a result thats allready there in your post-template-7.
<?php
/* Template Name: Page+Mainimage */
locate_template('includes/wp_booster/td_single_template_vars.php', true);
get_header();
global $loop_sidebar_position, $td_sidebar_position, $post;
$td_mod_single = new td_module_single($post);
$td_post_featured_image = td_util::get_featured_image_src($post->ID, 'full');
if (!empty($td_post_featured_image)) {
td_js_buffer::add_to_footer(
'jQuery(window).ready(function() {' . "\r\n" .
'(function(){' . "\r\n" .
'var td_backstr_item = new tdBackstr.item();' . "\r\n" .
'td_backstr_item.wrapper_image_jquery_obj = jQuery( "#td-full-screen-header-image" );' . "\r\n" .
'td_backstr_item.image_jquery_obj = td_backstr_item.wrapper_image_jquery_obj.find( \'img:first\' );' . "\r\n" .
'tdBackstr.add_item( td_backstr_item );' . "\r\n" .
"jQuery('.td-read-down a').click(function(event){" . "\r\n" .
"event.preventDefault();" . "\r\n" .
"var header_wrap = jQuery( '.td-full-screen-header-image-wrap:first' )" . "\r\n" .
"if ( 1 === header_wrap.length ) {" . "\r\n" .
"tdUtil.scrollToPosition(header_wrap.height() + header_wrap.offset().top, 1200);" . "\r\n" .
"}" . "\r\n" .
"});" . "\r\n" .
'})();' . "\r\n" .
'});'
);
}
?>
<article id="post-<?php echo $td_mod_single->post->ID;?>" class="<?php echo join(' ', get_post_class('td-post-template-7'));?> td-container-wrap" <?php echo $td_mod_single->get_item_scope();?>>
<div class="td-full-screen-header-image-wrap">
<div class="td-container td-post-header">
<div class="td-crumb-container"><?php echo td_page_generator::get_single_breadcrumbs($td_mod_single->title); ?></div>
<div class="td-post-header-holder">
<div class="td-parallax-header">
<header class="td-post-title">
<?php echo $td_mod_single->get_category(); ?>
<?php echo $td_mod_single->get_title();?>
<?php if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) { ?>
<p class="td-post-sub-title"><?php echo $td_mod_single->td_post_theme_settings['td_subtitle']; ?></p>
<?php } ?>
<div class="td-module-meta-info">
<?php echo $td_mod_single->get_author();?>
<?php echo the_modified_date('j. F Y', '<div class="the-modified-date" itemprop="dateModified">Update: ','</div>'); ?>
<?php echo $td_mod_single->get_views();?>
<?php echo $td_mod_single->get_comments();?>
</div>
</header>
<div class="td-read-down"><i class="td-icon-read-down"></i></div>
</div>
</div>
</div>
<div id="td-full-screen-header-image" class="td-image-gradient-style7">
">
</div>
</div>
<div class="td-container">
<div class="td-pb-row">
<?php
//the default template
switch ($loop_sidebar_position) {
default:
?>
<div class="td-pb-span8 td-main-content" role="main">
<div class="td-ss-main-content">
<?php
locate_template('loop-single-7.php', true);
comments_template('', true);
?>
<footer>
<?php echo $td_mod_single->get_post_pagination();?>
<?php echo $td_mod_single->get_review();?>
<div class="td-post-source-tags">
<?php echo $td_mod_single->get_source_and_via();?>
<?php echo $td_mod_single->get_the_tags();?>
</div>
----------------------------------- this part does not get displayed :I ----------------------
<?php echo $td_mod_single->get_social_sharing_bottom();?>
<?php echo $td_mod_single->get_next_prev_posts();?>
<?php echo $td_mod_single->get_author_box();?>
<?php echo $td_mod_single->get_item_scope_meta();?>
----------------------------------- this part does not get displayed :I ----------------------
</footer>
</div>
</div>
<div class="td-pb-span4 td-main-sidebar" role="complementary">
<div class="td-ss-main-sidebar">
<?php get_sidebar(); ?>
</div>
</div>
<?php
break;
case 'sidebar_left':
?>
<div class="td-pb-span8 td-main-content <?php echo $td_sidebar_position; ?>-content" role="main">
<div class="td-ss-main-content">
<?php
locate_template('loop-single-7.php', true);
comments_template('', true);
?>
</div>
</div>
<div class="td-pb-span4 td-main-sidebar" role="complementary">
<div class="td-ss-main-sidebar">
<?php get_sidebar(); ?>
</div>
</div>
<?php
break;
case 'no_sidebar':
?>
<div class="td-pb-span12 td-main-content" role="main">
<div class="td-ss-main-content">
<?php
locate_template('loop-single-7.php', true);
comments_template('', true);
?>
</div>
</div>
<?php
break;
}
?>
</div> <!-- /.td-pb-row -->
</div> <!-- /.td-container -->
</article> <!-- /.post -->
<?php
get_footer();
Please help me.How can I create ads before header – please see the link where I have attached a screenshot of the sample ads should look like :https://prnt.sc/l02iyh
Hi guys
Hope you’re doing great
I can’t edit the font for td_block_video_youtube
Is there a way to do it from the theme panel or does it have to be done via CSS? If so how do I do it?
Would also be great if there was a way to edit the header template and border colours etc. ?
Thank you!
Hi,
I’m trying to set up my WordPress site (using Newspaper 8.8.2) so it can display Google Ads and I’m stuck on the first step to just connect my site with AdSense.
First I followed Google’s “Connect your site to AdSense” instructions that tell you to copy some code between the <head> tags of each page I want ads. I did this by editing the header.php file and copying the code below between the <head> tags (using the correct code not ca-pub-123456789). This didn’t work.
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: “ca-pub-123456789”,
enable_page_level_ads: true
});
</script>
Next I followed the instructions here: https://forum.tagdiv.com/header-ads-adsense/
and pasted the code above in the header section.
It still didn’t work. I tried so many times that now I have to wait 24 hours before I can try again!
Your help would be most appreciated.
Thanks,
Janelle
Thanks.
But I use the code for phone or ipad,but it doesn’t work.
.td-post-template-default .td-post-header .entry-title {
font-size: 24px;
font-weight: 600;
}
I think most of phone now exceed 1080px.
I saw in some forums that people can remove it through functions but some were able to remove it through css. Maybe you could show me a css way.
I tried something like .td-post-header post-meta, .category-noebook .post-meta {
display: none;
}
but it didn’t work.
Hi,
How do I choose not to show a specific category name in the post header? screenshot –> https://ibb.co/bPUmxU
ty
If you have the proper meta data in the header of your posts, then it’s entirely up to Whatsapp to capture the content.