- 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
In a child theme we’ve added new template parts for the following files in order to select a different menu based on category.
child-theme/parts/menu-mobile.php
<?php
if (is_category(array(433,1738)))
{
wp_nav_menu(array(
'theme_location' => 'header-menu',
'menu_class'=> 'td-mobile-main-menu',
'fallback_cb' => 'td_wp_no_mobile_menu',
'link_after' => '<i class="td-icon-menu-right td-element-after"></i>',
'walker' => new td_walker_mobile_menu()
));
}
elseif ( is_category(array(8704,17723,17717,17718,17724,17721,17720,17719,18809,18810,28327)) || in_category(array(8704,17723,17717,17718,17724,17721,17720,17719,18809,18810,28327)) || is_page(array(92484,92558,96207)) )
{
wp_nav_menu(array(
'theme_location' => 'header-menu-mobile-CUSTOM',
'menu_class'=> 'td-mobile-main-menu',
'fallback_cb' => 'td_wp_no_mobile_menu',
'link_after' => '<i class="td-icon-menu-right td-element-after"></i>',
'walker' => new td_walker_mobile_menu()
));
}
else
{
wp_nav_menu(array(
'theme_location' => 'header-menu',
'menu_class'=> 'td-mobile-main-menu',
'fallback_cb' => 'td_wp_no_mobile_menu',
'link_after' => '<i class="td-icon-menu-right td-element-after"></i>',
'walker' => new td_walker_mobile_menu()
));
}
//if no menu
function td_wp_no_mobile_menu() {
//this is the default menu
echo '<ul class="">';
echo '<li class="menu-item-first">Click here - to use the wp menu builder';
echo '';
}
?>
and
child-theme/parts/header/header-menu.php
<?php
if (is_category(array(433,1738)))
{
wp_nav_menu(array(
'theme_location' => 'header-menu',
'menu_class'=> 'sf-menu',
'fallback_cb' => 'td_wp_page_menu',
'walker' => new td_tagdiv_walker_nav_menu()
));
}
elseif ( is_category(array(8704,17723,17717,17718,17724,17721,17720,17719,18809,18810,28327)) || in_category(array(8704,17723,17717,17718,17724,17721,17720,17719,18809,18810,28327)) || is_page(array(92484,92558,96207)) )
{
wp_nav_menu(array(
'theme_location' => 'header-menu-mcn',
'menu_class'=> 'sf-menu',
'fallback_cb' => 'td_wp_page_menu',
'walker' => new td_tagdiv_walker_nav_menu()
));
}
else
{
wp_nav_menu(array(
'theme_location' => 'header-menu',
'menu_class'=> 'sf-menu',
'fallback_cb' => 'td_wp_page_menu',
'walker' => new td_tagdiv_walker_nav_menu()
));
}
//if no menu
function td_wp_page_menu() {
//this is the default menu
echo '<ul class="sf-menu">';
echo '<li class="menu-item-first">Click here - to select or create a menu';
echo '';
}
?>
All that we’ve changed is the ‘theme_location’ in both files to load a different wp_nav_menu.
Everything works fine except for the css, drop down menu’s have no style and the height of links isn’t the full navigation bar height. Does the theme_location have any influence on the styling of the menu items?
Thanks
Matt
Also, I have problems with logos in the header, after I change them with composer it shows the ones from theme panel on site.
Hi there, I just reinstalled newspaper theme and for some reason there are no options regarding the headers (please see link below) how do I get them back as I need to disable the header bar.
Hi. Any news on this issue? I’m having the same trouble with the logo. I’ve uploaded a retina logo size: 544x180px and the theme keeps showing a 300x99px crop version automatically generated. I tried deleting “-300×99” added by the theme from the “data-retina” and “src” urls generated using the browser inspector and the image looks with the quality it should.
This is the original file url:
wp-content/uploads/2020/01/logo-top@1x.png
The theme creates this url once used as the header logo:
wp-content/uploads/2020/01/logo-top@1x-300×99.png
Thanks in advance
Heya,
Just bought the theme and I am trying to activate Newspaper theme so I can start using tagDiv Composer and setting up templates, headers etc.
I need this really urgent as my client wants to see results tomorrow. URL is http://wp.hussenwerkstatt.com.
Emails to contact@tagdiv.com have been sent already.
If you cannot sort this out shortly I have to use a different theme and obviously want to be refunded.
Also, I would not be happy at all of course.
Cheers,
Torsten
Hello !
This is a strange situation. The two of them should not conflict but you can try and insert the code in Theme Panel – Ads – Header Ad.
I hope this was helpful !
Thank you !
Hi,
I recently migrated my website to “News Paper” theme which i recently bought. How ever I am getting this error on every single post page:
Fatal error: Uncaught Error: Call to undefined function get_post_datetime() in /home/celebche/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php:1666 Stack trace: #0 /home/celebche/public_html/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_single.php(88): tdb_state_single->{closure}() #1 /home/celebche/public_html/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_single.php(88): Closure->__invoke() #2 /home/celebche/public_html/wp-includes/template-loader.php(78): include(‘/home/celebche/…’) #3 /home/celebche/public_html/wp-blog-header.php(19): require_once(‘/home/celebche/…’) #4 /home/celebche/public_html/index.php(17): require(‘/home/celebche/…’) #5 {main} thrown in /home/celebche/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php on line 1666
The site is experiencing technical difficulties.
Please help me fixing this issue.
Hi @Vlad-s. Thanks for your response, but that didn’t helped that much. In fact, I know how to work with WordPress/Themes/Plugins but I haven’t found yet a way to get rid of the header and footer using the theme.
I think the way to go would be to have a theme-child and create a new template file for that…
-
This reply was modified 6 years by
leobraz.
Hello, we have an issue when preview a post. The preview crash.
Here is the error log:
[Tue Jan 07 11:16:59.200185 2020] [proxy_fcgi:error] [pid 30149:tid 140520709936896] [client 186.52.146.139:45676] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to a member function format() on boolean in /var/www/vhosts/opcion.com.uy/httpdocs/marketing/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php:1667\nStack trace:\n#0 /var/www/vhosts/opcion.com.uy/httpdocs/marketing/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_single.php(88): tdb_state_single->{closure}()\n#1 /var/www/vhosts/opcion.com.uy/httpdocs/marketing/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_single.php(88): Closure->__invoke()\n#2 /var/www/vhosts/opcion.com.uy/httpdocs/marketing/wp-includes/template-loader.php(98): include(‘/var/www/vhosts…’)\n#3 /var/www/vhosts/opcion.com.uy/httpdocs/marketing/wp-blog-header.php(19): require_once(‘/var/www/vhosts…’)\n#4 /var/www/vhosts/opcion.com.uy/httpdocs/marketing/index.php(17): require(‘/var/www/vhosts…’)\n#5 {main}\n thrown in /var/www/vhosts/opcion.com.uy/httpdocs/marketing/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php on line 1667\n’, referer: https://www.opcion.com.uy/marketing/wp-admin/post-new.php
[Tue Jan 07 11:17:04.651399 2020] [proxy_fcgi:error] [pid 30149:tid 140520837773056] [client 186.52.146.139:45836] AH01068: Got bogus version 9, referer: https://www.opcion.com.uy/marketing/?p=5925&preview=true
[Tue Jan 07 11:17:04.651439 2020] [proxy_fcgi:error] [pid 30149:tid 140520837773056] (22)Invalid argument: [client 186.52.146.139:45836] AH01075: Error dispatching request to :, referer: https://www.opcion.com.uy/marketing/?p=5925&preview=true
Any help?
Hello !
You can set the menu height by editing it using the tagDiv Composer and setting the mega menu settings: https://www.screencast.com/t/LoGbu24q3
In order to hide ” ALL ” you will have to edit the menu with header manager: https://prnt.sc/qkepyh
I hope this was helpful !
Thank you !
Hello !
For the header logo: It appears that you’re using the responsive mode with a header template. You will have to open the header Manager and edit each view as you can see here you have 4 viewports: https://www.screencast.com/t/zjDsOqMMqU So you will have to activate each one and edit them accordingly with tagdiv composer. On mobile you will have to add the header logo, it looks that you’re missing that element.
For the revolution slider: Try and fix the corupt part first and then try again.
I hope this was helpful !
Thank you !
Hello !
In order to make the site full width you have to select every row of your page using the tagDiv Composer and then set the stretch mode you want like here : https://www.screencast.com/t/BkWwdHh6
In order to make the post page full width you will have to add a single post template and then edit it. Check more about how to have single post template here: https://tagdiv.com/customize-articles-with-single-post-templates/ And for the header you can do it here: https://www.screencast.com/t/xf56tQN0.
These are the ways you can increase your page width from theme options. Anything above this will require custom code.
If you are using a background color / image this will cause the boxed layout.
Let me know if this helped you !
Thank you !
Hi guys,
A few days ago, one of our pages suddenly started showing this error:
“There has been a critical error on your website.
Learn more about debugging in WordPress.”
When I go to my WP dashboard and click on Pages, I can’t see any of the pages we have created and I see this message:
“There has been a critical error on your website. Please check your site admin email inbox for instructions.”
… except I haven’t received any admin emails to help resolve this.
I also tried creating a new header from a cloud template, and within minutes ran into the same problem. The rest of the site still seems to be functioning normally, but we don’t really want to meddle with it too much as we don’t want anything else to break – which is problematic as we’re in the middle of a complete site redesign…
Looking through this forum, other users have suggested that the problem lies with TD Composer. We have reinstalled the theme and re-updated all the plugins but this hasn’t fixed it. We’ve also tried the usual deactivation of plugins but the problem still exists. I’ve asked our IT consultant to have a look and he can’t fix it. Do you have any suggestions on where we need to look next?
Thanks
Hello Vlad’s! Thank you! I got it. I have just one more problem. I got the header soon to change with each category. But in the mobile version this does not happen. The category pulls the logo from home. And I already changed the header template for each category in question but still pulling the home logo.
After adding adsense code in header, like in the image, our translations for header banner and footer do not apply correctly.
Is there any other way to implement the code?
Hi,
1. From what I so there are even more problems on menu, are us using some custom code or untested plugins ? also if you are using child theme please set the parent theme.
2. If you have set a header from tagDiv Cloud Library, you need to edit the sticky menu too, edit that header template using header manager -> https://www.screencast.com/t/FkAe80JsuCo check the sticky menu, scroll until you see the sticky menu and click the menu, logo … -> https://www.screencast.com/t/o6Z8zoJoWbFY
3. The problem is caused by some css that set the set the opacity to 0 -> https://i.imgur.com/6wjHJl1.png I think that the most of the problems are caused by these errors -> https://i.imgur.com/3BYQfYp.png the min-js can not be load properly.
4. The problem seems to be created by some css that set opacity 0, usually this problem is usually made by some plugins or custom code.
Thank you!
It should, but it does not apply, it breaks header style, and do not even change size of footer logo. You can test
Hi I would like to create custom ads eg. at the header/ side bar areas etc.
I am now using this code:
<div class=”td-all-devices”></div>
But this code only allows me to have one ad at a time.
How about if i would like to have multiple ads ( the ad change may be every 5 secounds) at the same area, and each ad image should link to a different URL link?
Thanks.
Hi. Can I create a page without header and footer for a landing page? Thank you!
Ive got also have the same problem at our new provider.
Warning: getimagesize(https://pixel-magazin.de/wp-content/uploads/2020/01/LogoStartseite.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /www/htdocs/w01a1e7a/pixel-magazin.de/wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_logo.php on line 782
Can you help me?
I want a separate widget box above the post/content area and below the header.
inbuilt header ads appear within the content area
how do i add a pic full width above my header logo colum?
Hello !
We recommend, you first create a backup of your website and set up a maintenance mode until your work is done.
In order to test the new implementation, you can use the WP-Staging plugin to create a staging copy of your website where you can test the new features without affecting the live site.
The first step for you to clearly see what features remain available and what’s new in Newspaper 10 would be to deactivate the Standard Pack plugin. This will probably cause your homepage to be filled with shortcodes, but don’t worry !
In this way you will know exactly what needs to be adjusted.
With the standard pack plugin deactivated you will have to import and set a Cloud template for all your default wordpress pages. In order to cover all of your website you need to import, customize and apply the following templates:
Header Template
Footer Page
404 template
Attachment Template
Author Template
Category Template
Date Template
Search Template
Single Post Template
Tag Template
All the templates found above are fully editable with tagDiv Composer which means more possibilities to customize your website. Please note that most of the old tagDiv Composer elements have been re-designed and converted to be fully customizable and can be imported to your page from here: poza cloud composer – blocks.
For the mobile menu please make sure that you do not have a plugin conflict, please deactivate ALL plugins except tagDiv ones, also if you are using child theme or cache plugin, deactivate them, clear all cache and try again.
Thank you !
Hi,
I do not quite understand the problem, the mobile header is different from the desktop header -> https://i.imgur.com/aZHubeo.png -> https://i.imgur.com/nFQbZEx.png so is not need to hide the elements from header when you change from desktop to mobile.
From what I can see on this page you’ve set the header elements in content -> https://i.imgur.com/X0Lj5E5.png not header zone.
Thank you!
Hello !
That can be achievable when editing the cloud library tempalte on each template you will have to edit the header available here: https://www.screencast.com/t/GJZIGQHnlFE
I hope this was helpful !