- 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
- Apitd_api_top_bar_template::update_key
- Apitd_api_top_bar_template::update
- Apitd_api_top_bar_template::add
- ApiAPI – Top Bar Template – Introduction
- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- ApiAPI – Single Template – Introduction
- Apitd_api_footer_template::update_key
- Apitd_api_footer_template::update
- Apitd_api_footer_template::add
- ApiAPI – Footer Template – Introduction
- Apitd_api_smart_list::update_key
- Apitd_api_smart_list::update
- Apitd_api_smart_list::add
How do I move the logo to the left of the Menu Bar, and make it bigger. The demo show that it can be done, but there is not an option to do so
Hi,
We are setting up a new blog using the header layout style Hybrid Menu 2 and would like to be able to modify the current presets to have a ticker bar show up in the top bar instead of the login/date/weather options provided.
What would be the best way to go about this?
Hi,
We are migrating our content sites to WordPress + Newspaper theme.
We have noticed that if we use the default WordPress setting “no category” for articles that have no category in the newspaper site, the newspaper theme gives a php error. (article post type, no category)
Also when we activate plugins that create detail pages (and use the newspaper detail page template) without having a proper category set, this gives the same error. (custom post type, no category, example: http://www.flaironline.nl/horoscopen/ram/)
The error:
Warning: Invalid argument supplied for foreach() in /data/home/deploy_monkey/femmes_be/development_current/wp-content/themes/sm-wp-theme-newspaper/includes/wp_booster/td_global.php on line 329 Call Stack: 0.0007 247056 1. {main}() /data/home/deploy_monkey/femmes_be/development_current/index.php:0 0.0015 247536 2. require('/data/home/deploy_monkey/femmes_be/development_current/wp/wp-blog-header.php') /data/home/deploy_monkey/femmes_be/development_current/index.php:17 0.9936 28089864 3. require_once('/data/home/deploy_monkey/femmes_be/development_current/wp/wp-includes/template-loader.php') /data/home/deploy_monkey/femmes_be/development_current/wp/wp-blog-header.php:19 1.0048 28184168 4. include('/data/home/deploy_monkey/femmes_be/development_current/wp-content/themes/sm-wp-theme-newspaper/single.php') /data/home/deploy_monkey/femmes_be/development_current/wp/wp-includes/template-loader.php:75 1.0048 28184328 5. locate_template() /data/home/deploy_monkey/femmes_be/development_current/wp-content/themes/sm-wp-theme-newspaper/single.php:3 1.0052 28184696 6. load_template() /data/home/deploy_monkey/femmes_be/development_current/wp/wp-includes/template.php:531 1.0055 28198392 7. require_once('/data/home/deploy_monkey/femmes_be/development_current/wp-content/themes/sm-wp-theme-newspaper/includes/wp_booster/td_single_template_vars.php') /data/home/deploy_monkey/femmes_be/development_current/wp/wp-includes/template.php:572 1.0055 28199336 8. td_global::load_single_post() /data/home/deploy_monkey/femmes_be/development_current/wp-content/themes/sm-wp-theme-newspaper/includes/wp_booster/td_single_template_vars.php:14
We believe the problem needs to be fixed in the “newspaper theme core”.
In /wp-content/themes/sm-wp-theme-newspaper/includes/wp_booster/td_global.php
An “if” needs to be placed round a foreach of the category array.
if(isset($categories)) {
foreach($categories as $category) {
if ($category->name != TD_FEATURED_CAT) { //ignore the featured category name
self::$primary_category = $category->cat_ID;
break;
}
}
}
It would be nice if this could be fixed.
Hi,
The mobile ad code is located in header.php from the mobile file. Please edit this code and add the condition to it like so:
http://screencast.com/t/WPjEQjbIzZCC
use this code for mobile:
<?php
// ad under header
if(!is_404()){
echo td_global_blocks::get_instance('td_block_ad_box_mob')->render(array('spot_id' => 'header_mob'));
}
?>
Thank you!
Hi,
Every demo has it;s own style for heading tags so there is no easy way of changing this without customization. The style you want is the default demo style but you have a different demo active. If you want to header style from the default demo you will have to replicate it’s css if you have the proper skills as there is no easy way of selecting which style you want for each demo.
Thank you!
Hello,
I have added an header ad into my website but I want the div’s height who wraps it to be fixed as it’s indicated inside the screenshot below:
Hello,
I was wondering if it is possible to have the option to place inline header ads and bottom inline ads float left or right just like how the middle inline ads can be.
Maybe this could be helpful for the next update if anything.
Thank you.
Hello,
Thanks for the reply. To confirm, I add
if(!is_404()){
echo td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'header'));
}
?>
anywhere into the 404.php to prevent ads appearing in the 404 page for the mobile plugin theme?
Thanks.
Hello sunnysunnet,
1)Please keep in mind that you are using the Mobile theme plugin, you will not bring these features on mobile mode because the theme has not been designed to render the Visual Composer elements in mobile theme, but only in Mobile Responsiveness mode. Please notice that the mobile theme has been built to be very fast and easy to be used. If you want to develop this plugin, through adding some additional settings and features, please notice that you will require custom work and we cannot provide these services at the moment, sorry! If you are not aware of these, please consider hiring a freelancer/developer to help you in this regard.
2)Please notice that the mobile theme cannot be changed without custom work. For more information about this feature, please consult our documentation here -> https://forum.tagdiv.com/the-mobile-theme/
3)I suppose that you want to change the background color for your Social Counter header, right? Please try the code below and place it in Theme panel->Custom CSS area.
The code is ->
.block-title > span {
background-color: black;
.block-title {
border-bottom: 2px solid #222222;
The result -> http://screencast.com/t/B7Vpy6dCS
If you want to have the exact layout with our demo for Newspaper, please notice that you can add the template when you create your homepage, like this -> http://screencast.com/t/4L4B5uHVDa -> http://screencast.com/t/HnezjEOty
Thanks for your understanding!
Hi ssburch,
Now in my site I only have google adsense and another campaign of Nike, but sometimes I use DFP and all work fine, you only have to put a tag in the header and the other tag in the ads section of the thema panel.
Tell me if you need more help.
I have two minor but irritating problem which I am unable to solve.My site is neopress.in
1. I have put a header AD code (Amazon responsive banner) but that never get displayed. Can you please tell me where am I going wrong?
2. I have selected the first footer template where “Editor pick” is there in the first column. This is never displayed. can you please help me to find out where do I set it up? Surprisingly, “popular posts” in the second column is coming automatically
Regards
Amitava
Would you be able to suggest a method for removing any HTML content (not just the tags) from the excerpts shown?
We have been unable to understand how to accomplish this.
We have tried the following:
function excerpt_cleanse( $text ) {
$raw_excerpt = $text;
if ( '' == $text ) {
//Get Post Content.
$text = get_the_content('');
//Strip Shortcode.
$text = strip_shortcodes( $text );
$text = apply_filters('the_content', $text);
$text = str_replace(']]>', ']]>', $text);
//Strip Header Tags & Content.
$regex = '#(<h([1-6])[^>]*>)\s?(.*)?\s?(<\/h\2>)#';
$text = preg_replace($regex,'', $text);
// Adjust Excerpt Length
$excerpt_word_count = 55;
$excerpt_length = apply_filters('excerpt_length', $excerpt_word_count);
//Adjust 'Read More' Portion
$excerpt_end = '[...]';
$excerpt_more = apply_filters('excerpt_more', ' ' . $excerpt_end);
$excerpt = wp_trim_words( $text, $excerpt_length, $excerpt_more );
}
return apply_filters('wp_trim_excerpt', $excerpt, $raw_excerpt);
}
add_filter( 'get_the_excerpt', 'excerpt_cleanse', 5);
Any help, direction, or suggestion would be much appreciated.
Thanks
Helo Sir,
1) Desktop Showing Newsticker, Wether, Stay connected Social Buttons but in mobile Nothing. How to get in mobile also these things?
2) I need to some changes need mobile theme like First need to show category 1, second need to show category 5 etc..how it is possible?
3) In desktop Stay connected Social counter header color i change to black, But no changes on the screen, what i will do?
Hello FarrahGillani,
I have checked your website and I saw that you are using the category template style 2 for your category pages, right? So, if you want to add your logo under the category title, you will have to add this in td_category_template_2.php. You can add your logo image using the do_shortcode method. First of all, you will have to create your shortcode for your logo, using the Text Block element from Visual Composer and then you will have to add this under the title in the core file.
1) Create your shortcode, like this -> http://screencast.com/t/7wrTbk1sO -> http://screencast.com/t/aLBXrotZzYr
2) Place the code in the corresponding category template file, like this -> http://screencast.com/t/FZcfgYnMie
The code for this example is ->
<?php echo do_shortcode('[vc_row][vc_column][vc_column_text]<a href="http://192.168.0.214/site2/logo-header/"><img class="alignnone size-full wp-image-3166" src="http://192.168.0.214/site2/wp-content/uploads/2016/07/logo-header.png" alt="logo-header" width="272" height="90" /></a>[/vc_column_text][/vc_column][/vc_row]');?>
The result you should see here -> http://screencast.com/t/Hasz018hCGfd
Hope this helps!
Thanks for your understanding!
Hello fachruljody,
If you want to add this border, you will have to use a bit of CSS code to do thi9s. Try the code below and place it in Theme panel->Custom CSS area.
The code is ->
.td-header-gradient::before {
background-color: red!important;
}
If you need more assistance in this regard, please provide your website URL so I can inspect it closer and also, so I will be able to provide a more accurate response.
Thanks for your understanding!
Site: finiwise.com
I have top bar disabled in theme panel, as well as disabled all the sub-options in the Header > Top Bar section. Yet, when viewed in Safari and Chrome on iPad mini, the login modal is shown at the top of the page.
In Chrome on Windows desktop, or Chrome on Android, it correctly do not show the login modal.
I notice that the Login modal is present in the HTML code, even when top bar is disabled. Perhaps it should not appear at all, when it is disabled?
Hello jaycriss,
I have checked your website and I saw that you are using the Header Style 10, the template which displays the Ads after the menu. Please notice that we have a lot of header styles and if you want to have on the right side you ad, you can use the header style default, like this -> http://screencast.com/t/PJYNdxxQCw18 -> http://screencast.com/t/R5bKAIaCPG
For more information about our header styles, please check here -> https://forum.tagdiv.com/header-styles/
Thanks for your understanding!
Hi Catalin,
You have right, they are any cutomisations in Theme Panel -> Custom Code.
I´ve changed that to the style.css and its the same.
If I revert the Theme in default settings (or better I take the newest Update), what is with my customisations?
They are many in the styles.css, in some modules, in the header, in the includes and so on.
Thank You
Achim
Hi
Social icons from header can be configured from theme panel > social networks: http://screencast.com/t/0pJMVD0BPl There you can insert the links to your social networks then they will be displayed on the site.
Thanks!
Hello,
I’m trying to place an adsense ad in the header, on the right side of my logo. However, the banner ad appears under the menu. How can I solve this?
my website is: http://eyestocker.com
Hello all!
Main menu display text “Click here – to select or create a menu” after I switch “Header menu (main) to –No Menu–” and delete all entrys in WordPress “Dashboard > Appearance > Menus”
Where i can disable main menu completely or disable this text to appear? I want enable only site Logo with HEADER STYLE 5.
Hi Dear Sir / Madam
i hope your doing very well, yesterday i buy your theme newspaper7 i active my site http://tabeer.pk so please i need help about google adsense code, becouse i put header google adsense code through my theme panel but i put code 728×90 so how it possible to compress in mobile theme ?
Thanks
Thanks for your reply.
1. I don’t have a single clue of these things. I’ll try to work it out myself. But it’s weird because when I uploaded the new theme on Saturday (the website is 6 years old and had another theme), I was the first visitor via tablet. How is it possible to be cached and see the mobile theme? Also, as I said before, when I used the Samsung tablet, at first I saw the site fine, the way it was supposed to look. But when I hit the home button via the menu, the mobile theme appeared. So, if it was something about cache, it should display the mobile theme from the start and not after a while, right?
2. I wasn’t very clear about it. I’m aware how to set ads in the predefined spaces, as you’ve done an excellent job to make the interface very easy. I want to display ads after the header, as I point in the following screenshot: http://i.imgur.com/ukhxM2Q.jpg
3. The code works. Thank you!
Hello,
1) This issue is cache related if the cache settings are not set properly, then the mobile theme can even show up on desktop. We have seen this also in some cases. There are another 2 caches you may have besides the plugin. There is a cdn server if you use it and some hosting providers have cache from the server side that some users are not aware of. Pleas also check these and set them properly and then test the site again.
2) You can use the theme ad spots to do it to soem extent. a header and footer ad will show up on every post/page/category but content ads are handled for posts by the article ads: https://forum.tagdiv.com/article-ads/ and the pagebuilder adbox element on pages. CAtegories do not have content ad possibilities except for sidebar ads.
As a note, you cannot have article ads or content ads of 728 px width because the main content width when using a sidebar is 696 pixels. you can only have 728px ads inside the content if you do not use sidebars.
3)The sibling categories can be removed with css if you use this code in the theme panel->custom css box:
@media(max-width:767px){
.td-category-siblings{
display:none!important;
}}
Thank you!
Oh, and another question that I wanted to ask:
In mobile theme, when you enter a category page, it show some of the other categories right after the header. Is there any way to hide this section and the categories. Because some of the categories I have in my site are obsolete or created for other reasons and I don’t want them to show in public.
Thank you!