- ApiPractical example – How to add a new Block and Module
- Apitd_api_top_bar_template::delete
- Apitd_api_top_bar_template::update_key
- Apitd_api_top_bar_template::update
- Apitd_api_top_bar_template::add
- Apitd_api_single_template::delete
- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- Apitd_api_footer_template::delete
- Apitd_api_footer_template::update_key
- Apitd_api_footer_template::update
- Apitd_api_footer_template::add
- Apitd_api_smart_list::delete
- Apitd_api_smart_list::update_key
- Apitd_api_smart_list::update
- Apitd_api_smart_list::add
- Apitd_api_thumb::delete
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
You are using footer template 4 – https://www.screencast.com/t/1gixEqxC3Ff
In this example with the same footer template I first set a logo of 800×800 size
– http://prntscr.com/ke4t9w
– http://prntscr.com/ke4svw
In this example I set a logo of 16×16
– http://prntscr.com/ke4tgg
– http://prntscr.com/ke4tpc
So it can be seen that the logo is displayed in the size I upload it in. There are no changes made to the image size, not stretched or reduced.
You are uploading this logo
– https://www.pakdefense.com/wp-content/uploads/2018/07/FOOTER-LOGO-183-X-183-150×150.png
When you should be uploading this one
– https://www.pakdefense.com/wp-content/uploads/2018/07/FOOTER-LOGO-183-X-183.png
Please again make sure you upload the logo image in full size, not a thumbnail of 150×150
– https://www.screencast.com/t/cNM3AT6dzr
– https://www.screencast.com/t/V4S3GqnlFVRo
Paste it in the page content – https://www.screencast.com/t/Gwoxb2tNNpm5
That page is an example, you can create your own using composer elements and woocommerce shortcodes.
The Woocommerce link provided above mentioned in detail all the shortcodes available and their parameters. You can create your own design, not necessarily how the demo page does it.
Hello juniorcalazansdcsj,
There are many cases of this issue happening, a simple search on Google and this can be seen, also various fixes can be found:
https://www.google.ro/search?q=wordpress+the+plugin+does+not+have+a+valid+header&oq=wordpress+the+plugin+does+not+have+a+valid+header&aqs=chrome
Hope this helps and let us know how it goes!
Thanks for the message!
Hi,
How to setup sidebar ads in theme. please suggest. here are my web url
http://www.hellorajasthan.com
Thanks &Regards
Rajender
Are you by any chance using some language specific characters or other symbols in the sidebar name?
– https://forum.tagdiv.com/sidebars-tutorial/
Try with a simple sidebar called “test” for example.
If that is not the case, try with all plugins deactivated and see if the same happens, leave only theme plugins active.
Also check the theme requirements guide carefully
– https://forum.tagdiv.com/requirements-for-newspaper/
If nothing works, we could take a look. Send us an email at contact@tagdiv.com and provide admin login and cPanel if possible. Include a link to this topic in the email.
Hi,
In this page you display the latest articles since you use the default blog page it seems
– http://vards.net/
There is no control over the posts displayed there.
If you were to create a page with and choose the latest articles template
– https://www.screencast.com/t/TdIZ3g6uE
Then set that page as homepage
– https://forum.tagdiv.com/homepage-how-to-build-and-set-it/
The result will be the same visually. But the difference is that you have control of what is displayed in the page.
The filter settings for the latest articles section are here for example
– https://www.screencast.com/t/Jo8bfFfjjdcN
Or here – https://www.screencast.com/t/QQoQiMvp
The latest articles section by default will show posts from all your categories. However it has the same filtering ans sorting as a block
– https://www.screencast.com/t/CdTQzkeqXjbP
If you don’t want posts from the “Coin Study” category in the latest articles enter the category ID with “-” before it
– https://www.screencast.com/t/WG9ZlrVDit
Thanks
I have checked the code and solve one error, this is because of new In-Feed ad units of Adsense. Now, I have delete this type of Ad units and add simple 250*300 ads.
See this screenshot- http://prntscr.com/kdvj1n (Old post without ads)
http://prntscr.com/kdvjh8 (new post with ads & errors)
please help me to solve
In my case, any list edited with td composer left huge gaps between each list. I had to go back to the HTML editor to remove the lists and just use them as regular paragraphs. An example is like this:
1. Tagdiv composer
(all this is white space)
2. I like Newspaper.
3…..list continues like that.
I had the number wrong before, what an idiot. I have them both working now on all regular posts. If there is a way to get it working on category/search/tag pages as well (examples below) please let me know:
https://dontdoanmba.com/?s=kickstarter
https://dontdoanmba.com/category/product-selling/
https://dontdoanmba.com/tag/kickstarter/
Also, it is possible to make it work from category pages? For example it doesn’t work at all on https://dontdoanmba.com/category/product-selling/
Hi,
Yes you can with some CSS. Like this for example
– https://www.screencast.com/t/ndTv10XdFLX
Enter this code in Theme panel->Mobile theme->Custom CSS code
.td-footer-description {
display: none;
}
Hi,
Image captions have to be set per image, each image has it’s own captions. If you then use the images in a gallery for example, each will display the caption it has
– https://demo.tagdiv.com/newspaper/td-post-aston-villa-beat-liverpool-to-join-arsenal-in-the-fa-cup-final/
Thanks
You could do that with some CSS, like this example
– https://www.screencast.com/t/kftxN7C9lTf
Code used in example
.td-drop-down-search .td-module-thumb {
display: none;
}
.td-header-wrap .td-aj-search-results .item-details {
margin: 10px 20px 10px 20px!important;
}
The code will remove the thumbnail and position the post meta to occupy the remaining space.
Hi,
We reply in all topics as soon as possible, no need to worry about that.
For AMP auto ads, see this topic. I believe this is what you are looking for
– https://forum.tagdiv.com/topic/info-adv-amp/
For the mobile theme the header file is here
– https://www.screencast.com/t/XXXmvPipsV
Thanks
Hi,
I will try to help you.
1 .So you want to increase the size of the text in the post content I believe, when using the mobile theme plugin.
The default font-size is 15px with a line height of 26px
– https://www.screencast.com/t/ylTxhhEnsA
Using the browser inspector this is not difficult to modify
– https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/
So a code like this will affect all the paragraphs in the post content
– https://www.screencast.com/t/tLRvOAl0
Code used in example, modify the values as you want, then enter it in the mobile theme CSS section of the theme panel.
.td-post-content p {
font-size: 18px;
line-height: 29px;
}
2. The mobile theme only has a single module that it uses for the latest articles. This plugin does not have many settings and is kept as light as possible for performance factors. Having many settings and loading heavy resources would only make it slower.
The plugin is optional and intended to be used if the website owner wants to display a simpler and faster variant of the website on mobile, with no dependency on page builder content.
Thanks
Hi,
What my colleague suggested seems to work, I made an example
Before – http://prntscr.com/kdnxzy
After setting it as suggested – http://prntscr.com/kdny56
Result – http://prntscr.com/kdnyep
So it would be the same for you. Place it in content if you want it to affect the conten length
– http://prntscr.com/kdnypn
You want to remove the title as well? Enter the same in the title field. Then the posts that display in module 18 will have no title.
Hi,
That is possible, for example a code like this will remove only the slider meta
– https://www.screencast.com/t/Ahalhw7qp6g
.td_block_slide .td-module-meta-info {
display: none;
}
Try it, it should work. Let me know if this is not what you wanted.
Thanks
-
This reply was modified 8 years by
Simion C..
It doesn’t seem to work for me.
I am trying to load custom ad 2 starting from the second page. Here is the code I am tried using…
if ($current_page > 1) {
$buffy .= td_global_blocks::get_instance(‘td_block_ad_box’)->render(array(‘spot_id’ => ‘custom_ad_2’));
}
Here is my smart list 6 page code…
<?php
class td_smart_list_6 extends td_smart_list {
protected $use_pagination = true; // set this to true to use rela pagination on this template
protected function render_before_list_wrap() {
if(td_global::$cur_single_template_sidebar_pos == ‘no_sidebar’) {
$td_class_nr_of_columns = ‘ td-3-columns ‘;
} else {
$td_class_nr_of_columns = ‘ td-2-columns ‘;
}
$buffy = ”;
//wrapper with id for smart list wrapper type 2
$buffy .= ‘<div class=”td_smart_list_6’ . $td_class_nr_of_columns . ‘”>’;
return $buffy;
}
protected function render_list_item($item_array, $current_item_id, $current_item_number, $total_items_number) {
//print_r($item_array);
$buffy = ”;
//creating each slide
$buffy .= ‘<div class=”td-item”>’;
$buffy .= ‘<div class=”td-number-and-title”><h2><span class=”td-sml-current-item-nr”>’ . $current_item_number. ‘</span><span class=”td-sml-current-item-title”>’ . $item_array[‘title’] . ‘</span></h2></div>’;
$buffy .= ‘<div style=”text-align: center; font-size: 10px; margin-bottom: 5px;”><span style=”color: #666666;”>ADVERTISEMENT</span> </div> <div style=”border-top: 1px solid #e9e9e9;text-align: center; margin-bottom: 12px;”></div><!– Ezoic – TS-SL-728×90 – under_page_title –>
<div id=”ezoic-pub-ad-placeholder-105″>’;
$buffy .= ‘<div class=”adsense”>’;
$buffy .= td_global_blocks::get_instance(‘td_block_ad_box’)->render(array(‘spot_id’ => ‘custom_ad_4’));
$buffy .= “</div></div>”;
//$buffy .= ‘<div style=”border-top: 1px solid #4DB2EC;text-align: center;color: #56565A; margin-bottom: 8px;”></div></div>’;
//get image info
$first_img_all_info = td_util::attachment_get_full_info($item_array[‘first_img_id’]);
//get image link target
$first_img_link_target = $item_array[‘first_img_link_target’];
//image caption
$first_img_caption = $item_array[‘first_img_caption’];
//image type and width – used to retrieve retina image
$image_type = ‘td_696x0’;
$image_width = ‘696’;
if(td_global::$cur_single_template_sidebar_pos == ‘no_sidebar’) {
$first_img_info = wp_get_attachment_image_src($item_array[‘first_img_id’], ‘td_1068x0’);
//change image type and width – used to retrieve retina image
$image_type = ‘td_1068x0’;
$image_width = ‘1068’;
} else {
$first_img_info = wp_get_attachment_image_src($item_array[‘first_img_id’], ‘td_696x0’);
}
if (!empty($first_img_info[0])) {
//retina image
$srcset_sizes = td_util::get_srcset_sizes($item_array[‘first_img_id’], $image_type, $image_width, $first_img_info[0]);
// class used by magnific popup
$smart_list_lightbox = ” td-lightbox-enabled”;
// if a custom link is set use it
if (!empty($item_array[‘first_img_link’]) && $first_img_all_info[‘src’] != $item_array[‘first_img_link’]) {
$first_img_all_info[‘src’] = $item_array[‘first_img_link’];
// remove the magnific popup class for custom links
$smart_list_lightbox = “”;
}
$buffy .= ‘
<figure class=”td-slide-smart-list-figure td-slide-smart-list-6’ . $smart_list_lightbox . ‘”>
</figure>
<figcaption class=”td-sml-caption”><div>’ . $first_img_caption . ‘</div></figcaption>
‘;
}
$tds_smart_list_6_title = td_util::get_option(‘tds_smart_list_6_title’);
// ad smart list 6
//$buffy .= ‘<div style=”text-align: center; font-size: 12px; margin-bottom: 6px;”><span style=”color: #666666;”>ADVERTISEMENT</span> </div> <div style=”border-top: 1px solid #4DB2EC;text-align: center;color: #56565A; margin-bottom: 12px;”></div> <!– Ezoic – TS-SL-728×90-2 – under_first_paragraph –>’;
$buffy .= ‘<div class=”adsense”><div id=”ezoic-pub-ad-placeholder-106″>’;
$buffy .= td_global_blocks::get_instance(‘td_block_ad_box’)->render(array(‘spot_id’ => ‘smart_list_6’, ‘spot_title’ => $tds_smart_list_6_title));
//$buffy .= ‘<div style=”border-top: 1px solid #4DB2EC;text-align: center;color: #56565A; margin-bottom: 8px;”></div>’;
$buffy .= “</div></div></div><!– End Ezoic – TS-SL-728×90-2 – under_first_paragraph –>”;
$buffy .= “<!– google_ad_section_start –>”;
//adding description
if(!empty($item_array[‘description’])) {
$buffy .= ‘<span class=”td-sml-description”>’ . $item_array[‘description’] . ‘</span>’;
}
$buffy .= ‘</div>’;
// render the pagination
$buffy .= “<!– google_ad_section_end –>”;
$buffy .= ”;
$buffy .= ‘<div id=”ads” style=”clear:both;padding-top:15px;”><div style=”float:left;”>’;
$buffy .= ‘<!– Ezoic – TS-SL-336×280 – bottom_of_page –>
<div id=”ezoic-pub-ad-placeholder-107″><div class=”adsense”>’;
$buffy .= td_global_blocks::get_instance(‘td_block_ad_box’)->render(array(‘spot_id’ => ‘custom_ad_5’));
$buffy .= ‘</div></div></div>
<!– End Ezoic – TS-SL-336×280 – bottom_of_page –>’;
$buffy .= ‘<!– Ezoic – TS-SL-336×280-2 – bottom_of_page –>
<div id=”ezoic-pub-ad-placeholder-108″><div class=”adsense”>’;
$buffy .= td_global_blocks::get_instance(‘td_block_ad_box’)->render(array(‘spot_id’ => ‘custom_ad_3’));
$buffy .= “</div></div>
<!– End Ezoic – TS-SL-336×280-2 – bottom_of_page –>”;
$buffy .= ‘<div id=”ezoic-pub-ad-placeholder-117″>’;
$buffy .= td_global_blocks::get_instance(‘td_block_ad_box’)->render(array(‘spot_id’ => ‘custom_ad_1’));
$buffy .= ‘</div>’;
// render the pagination
$buffy .= $this->callback_render_pagination();
//$buffy .= $this->callback_render_drop_down_pagination();
$buffy .= ‘<div style=”text-align: center; font-size: 12px; margin-bottom: 2px;”></div><!– Ezoic – TS SL Native Bottom – native_bottom –>
<div id=”ezoic-pub-ad-placeholder-194″>’;
$buffy .= td_global_blocks::get_instance(‘td_block_ad_box’)->render(array(‘spot_id’ => ‘custom_ad_2’));
$buffy .= “</div><!– End Ezoic – TS SL Native Bottom – native_bottom –>”;
return $buffy;
}
protected function render_after_list_wrap() {
$buffy = ”;
$buffy .= ‘</div>’; // /.td_smart_list_6 wrapper with id
return $buffy;
}
}
A sample child theme is available in the /code/ folder in the package that you downloaded from Themeforest.
Hello.
How do I put in Google automatic ads for each of my mobile themes and AMP pages?
Please reply.
Hi,
So you want to display custom post types in a page? Blocks can display custom post types, this is specified in the block settings guide
– https://forum.tagdiv.com/custom-post-type-support/
All you have to do is to enter the post type name in the required field, example in my case with the default CPT plugin
– https://www.screencast.com/t/rgCYhbKSfyKK
Hi,
1. The theme actually doesn’t send any emails, WordPress or hosting provided mailing service (where available) send emails.
The theme login and registration is the same as default WordPress, we added some style for it with the modal window, but the functionality belongs to WordPress.
So for example these are the same thing – https://www.screencast.com/t/p7YXs6nFbUDj
You can disable the theme login in the theme panel, then maybe use a login plugin with more advanced settings.
2. There would be plugins if you would like to provide that from the website side, also there are plenty of browser extensions for users that like to use dark mode.
I for example use a simple Chrome extension which works perfectly when activated.
What exactly do you mean that it will show for all users? It will appear for users with capability to edit published posts, given to them by WordPress
– https://www.screencast.com/t/ES0lRj3s5
– https://www.screencast.com/t/KbrtMd70QPi6
– https://codex.wordpress.org/Roles_and_Capabilities
So that means authors and above, that is the condition. It is impossible to show for subscribers for example.
Comment or delete the code and the edit option will not appear. This is then solution. A setting is not created for this because as far as I can remember, there were very few user request. Sorry for the inconvenience.
Hello nikkib312,
Please notice that the speed of your website depends on how well your site is optimized.
-> https://developers.google.com/speed/pagespeed/insights/?hl=ro&url=http%3A%2F%2Fyesitreallyhappened.com%2F&tab=desktop
Notice that is not a simple task and if you do not have any experience in this regard you will do not bring good results for the theme. Also, notice that we have a speed optimization tutorial but this is addressed only to advanced users. So, if you follow the steps which are presented in this tutorial here -> https://forum.tagdiv.com/how-to-make-the-site-faster/ you can increase the page speed loading and if you are not aware of the steps in this regard, please consider hiring a freelancer/developer to help you because the speed optimization services are not covered by our support policy, as you can read here -> https://forum.tagdiv.com/support-policy-2/ Check our documentation here -> https://forum.tagdiv.com/requirements-for-newspaper/ regarding on dedicated server to fit our requirements.
Unfortunately, our theme does not have such an option to minify the style.css file and we cannot recommend any plugins with this functionality because is not tested with our theme. For minifying this file, we are using CloudFlare for our demo and works fine. If you want to read other views from our users, please check this topic -> https://forum.tagdiv.com/topic/tip-how-to-easily-minify-your-css-without-breaking-your-site/
Also, check all of your Ad Spots and if you have entered any suspicious code through them, remove all of them and check the results without them.
One of our top members here on the forum wrote his own optimization tutorial here:
https://forum.tagdiv.com/topic/tutorial-chriss-custom-optimizations-for-functions-php-etc/ and here -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
Basically, these are the theme requirements
– https://forum.tagdiv.com/requirements-for-newspaper/
Thanks for your understanding!
Hi,
Shortcodes can be entered in text elements, that would work. Try entering that shortcode in a column text for example, or text with title.