No search results were found in Documentation!
Hello. My site is http://mice-tv.ru/
I have a problem:
Fatal error: Uncaught Error: Class ‘»»’ not found in /home/micetv5/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php:185 Stack trace: #0 /home/micetv5/public_html/wp-content/plugins/td-composer/includes/shortcodes/vc_column_text.php(13): td_block->render(Array) #1 /home/micetv5/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_global_blocks.php(28): vc_column_text->render(Array, ‘«]’) #2 /home/micetv5/public_html/wp-includes/shortcodes.php(319): td_global_blocks::proxy_function(Array, ‘«]’, ‘vc_column_text’) #3 [internal function]: do_shortcode_tag(Array) #4 /home/micetv5/public_html/wp-includes/shortcodes.php(197): preg_replace_callback(‘/\\[(\\[?)(adrota…’, ‘do_shortcode_ta…’, ‘[vc_column_text…’) #5 /home/micetv5/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php(176): do_shortcode(‘[vc_column_text…’) #6 /home/micetv5/public_html/wp-content/plugins/td-composer/includes/shortcodes/vc_column.php(56): tdc_composer_block->do_shortcode(‘[ in /home/micetv5/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 185
In support of my hosting said me that:
It looks like this may have something to do with the td-composer plugin.
But after:
Alright, so after disabling it I am still seeing issues on the page with formatting, however I’m not seeing the error anymore. I’ve gone ahead and re-enabled the plugin, but it appears that there is some kind of compatibility error in the coding between the plugin and the theme you are using. I would recommend reaching out to the plugin developer to take a look at this and providing the error to them, as getting this resolved will require coding support which is outside of the scope of what we’re able to help with here.
Please help me :((
Hello. My site is http://mice-tv.ru/
I have a problem:
Fatal error: Uncaught Error: Class ‘»»’ not found in /home/micetv5/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php:185 Stack trace: #0 /home/micetv5/public_html/wp-content/plugins/td-composer/includes/shortcodes/vc_column_text.php(13): td_block->render(Array) #1 /home/micetv5/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_global_blocks.php(28): vc_column_text->render(Array, ‘«]’) #2 /home/micetv5/public_html/wp-includes/shortcodes.php(319): td_global_blocks::proxy_function(Array, ‘«]’, ‘vc_column_text’) #3 [internal function]: do_shortcode_tag(Array) #4 /home/micetv5/public_html/wp-includes/shortcodes.php(197): preg_replace_callback(‘/\\[(\\[?)(adrota…’, ‘do_shortcode_ta…’, ‘[vc_column_text…’) #5 /home/micetv5/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php(176): do_shortcode(‘[vc_column_text…’) #6 /home/micetv5/public_html/wp-content/plugins/td-composer/includes/shortcodes/vc_column.php(56): tdc_composer_block->do_shortcode(‘[ in /home/micetv5/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 185
In support of my hosting said me that:
It looks like this may have something to do with the td-composer plugin.
But after:
Alright, so after disabling it I am still seeing issues on the page with formatting, however I’m not seeing the error anymore. I’ve gone ahead and re-enabled the plugin, but it appears that there is some kind of compatibility error in the coding between the plugin and the theme you are using. I would recommend reaching out to the plugin developer to take a look at this and providing the error to them, as getting this resolved will require coding support which is outside of the scope of what we’re able to help with here.
Please help me :((
Hello Ducacordero,
For example, if you are using the post template style 1 you should edit the loop-single-1.php and add this code -> https://www.screencast.com/t/dZJqpgKOE Then, ensure that in the Custom Ad 1 have been added your AdCode like this -> https://www.screencast.com/t/Aa8kIJm3SKm Notice that if you will follow this advice, you should remove the Article Bottom Ad or disable it because to move this ad is not a simple task and require to make a lot of customizations. This is the simplest way in this case to use the do_shortcode method.
Thanks for the message!
Hello mradamrothwell,
Unfortunately, the theme has not been designed to be used with Amazon Advert, sorry! Only Google AdSense code is tested for our theme. You can try using the Amazon Ads but please notice that we cannot say for sure if it will work or not with the theme, sorry! If you want to place the Ad Spots in several places in the theme you should use the do_shortcode method according to the following topic here -> https://forum.tagdiv.com/topic/how-to-add-banner-on-top-of-date-and-socil-media-icon/ Here you can see an example for adding adverts.
Thanks for the message!
Hi Simion,
Thank you for the link. It worked perfectly.
For anyone looking at what to change:
Look for the following code in “front-page.php”
<div class="td-container">
<?php echo do_shortcode('[td_block_big_grid_mob_1 sort="featured"]'); ?>
<?php the_content(); ?>
</div>
add the following ‘category_id=”191″‘ (replace 191 with the category id of your own category)
new code should look like this:
<div class="td-container">
<?php echo do_shortcode('[td_block_big_grid_mob_1 category_id="191" sort="featured"]'); ?>
<?php the_content(); ?>
</div>
Hello vitalisv,
If you want to add something like this to your post template page, notice that you should edit the loop-single templated use by you and add the do_shortcode method with a custom ad 1 field, like this -> https://www.screencast.com/t/j6DzLiT48Hv
The code is ->
<?php echo do_shortcode ('[td_block_ad_box spot_id="custom_ad_1"]'); ?>
Also, make sure that your Custom Ad is populated with an ad code.
Hope this helps!
Thanks for the message!
Hello,
You can use a do_shortcode function in this regard. Here is a reference: https://developer.wordpress.org/reference/functions/do_shortcode/
You can place the function in one of these files depending on the header style that you use: https://www.screencast.com/t/lPaFwSZTXS
Thank you!
Hello Mariano Jonte,
If you want to place the widget with more popular notes on the sire, notice that you should try using the widget sidebar setup from Widget setting with an element with more popular sort order, like this -> https://www.screencast.com/t/MhbJxrVPRWYl Use the do_shortcode method according to this one ->
do_shortcode ('[vc_widget_sidebar sidebar_id="td-default"]');
Hope this helps!
Thanks for your understanding!
Hi,
the second time happened when the theme “restore” deleted items…
I removed the demo images – 1. from wp-admin/media – 2. from everything in the uploads directory.
2nd of December had a 30 min server downtime ( still not sure what was caused – since got doubled memory/4 GB/, disk space/40 GB/ )
25th December had a DDOS attack against portal, caused a “frozen menu on mobile” and “no pictures were shown” about 5 hours on the website.
After both outages, the theme API ( what else? ) restored parts from demo content – like changed back the color settings to its default, restored all DELETED demo images to the media library…
So, I will move the stuff to a dedicated server / 2 TB disk, 64 gb ram /, but I don’t want the demo content is shown again – so complete remove the demo installer, also I want to remove all unnecessary items like woocomerce, bbpress related things from function.php
And would like to set the customised settings as default. Whenever I load a page/post I see a slight delay – and the default blue colors on the header. – Why is it loading the demo original at all?
2.,
///SSO Notice Conflict detected — your theme or another plugin is adding meta property=”og:image” to the head section of this webpage.
SSO Notice 1 duplicate meta tags found. Check 0 of 5 failed (will try again later)…
SSO Notice Checking https://1000wordsmagazine.com/?p=2321 for duplicate meta tags…
///
I removed the meta property tag because interfere was caused by wpsso SEO plugin.
wp-content/themes/Newspaper/mobile/functions.php
if (!empty($td_image[0])) {
echo ‘<meta property=”og:image” content=”‘ . $td_image[0] . ‘” />’;
3.,
I would like to show shortcodes on category and tags pages. But the snippet not works, in function .php.
And in twenty5-6-7 themes working – therefore Newspaper theme strips out the shortcode support.
add_filter( ‘category_description’, ‘do_shortcode’ );
https://premium.wpmudev.org/blog/cool-wordpress-category-pages/
https://webgilde.com/en/shortcode-not-working-category-description/
https://github.com/Yoast/wordpress-seo/issues/4786
That was the recommended solution from those websites, but it does not work at all, with the Newspaper theme.
Thank you, Zoltan
Hello,
1) Please check this list https://forum.tagdiv.com/theme-blocks-modules and then use the table to change the font for the module you want to change, In your case: https://www.screencast.com/t/ZooBl4JkTime
2) Simply place an ad in the article bottom ad and it will sow up in every post style except if you use a smart list. Smart lists ignore article ads.
3) Add this css in the theme panel;-> custom code section:
#reply-title{
font-weight:900;
}
4) If you want a separate ad specifically for post style 13, you can add it in the post file using a do_shortcode function here:
<?php echo do_shortcode ('[td_block_ad_box spot_id="custom_ad_1"]'); ?>
Maker sure you have and ad placed in custom_ad_1 in the them panel. You can add a separator with a simple hr tag. Here is an example:
https://www.screencast.com/t/85H3lfc5VAX
front-end: https://www.screencast.com/t/2bdgRXDT
Happy holidays!
Hello Guys,
I’ve tried to add this code in thr single loop post but it’s not showing on mobile
<?php echo do_shortcode (‘[vc_row][vc_column width="2/3"][td_block_21 custom_title=”Latest Articles” block_template_id=”” sort=”random_posts” ajax_pagination=”load_more” tdc_css=”eyJhbGwiOnsiYm9yZGVyLXN0eWxlIjoibm9uZSJ9fQ==”][/vc_column][vc_column width="1/3"][/vc_column][/vc_row][vc_row][vc_column][/vc_column][/vc_row]‘); ?>
Hello Hansjörg,
If you want to add a banner ad at the top of your site, you should edit the header.php core files and there you should use the do_shortcode method to add the banner you want. Please refer to this topic here -> https://forum.tagdiv.com/topic/how-can-i-put-ads-between-post-title-and-social-share-button/ -> here is a simple example.
Thanks for the message!
Hello anshidtanalur,
If you want to put some ads above the social sharing buttons you should use the do_shortcode() method. For example, if you are using the post template style 1, please check here -> https://www.screencast.com/t/25R2rc9FJPp After your changes, make sure that you have added some ad code to custom ad 1 field.
Thanks for your understanding!
Hi,
Is it possible to add the block shortcode programatically in a php file. I don’t want to use do_shortcode but echoing a function that generates the block.
So for [td_block_1 autors_id="2,3"] we can do so something like: <?php echo td_block_1(‘autors_id’ => ‘2,3’) ?>. The reason I want to do this is I need to get author id dynamically but I also want to use the built in blocks.
Hello kobsev,
Notice that the theme does not have any kind of option that allows you to add a banner ad to the category pages, sorry! If you want to add this, you should use the do_shortcode method and add it to the category template used by you. As a hint, you should refer to this topic here -> https://forum.tagdiv.com/topic/advertising-block-in-category-page/
Thanks for the message!
Hi,
That would require some editing of the post template used. Each post template has a corresponding loop-single file (Ex: post template 2->loop-single-2) These files are located in the main theme folder.
Editing one of the templates (in this example post template 2) the structure of the post can be seen.
Now by using a do_shortcode you could place an ad in that position, for all posts that use the mentioned post template, like this
– https://www.screencast.com/t/jFW87F2fi
Placing the code above the related articles section will display it as you want
– https://www.screencast.com/t/9Xqg9GtAw7
I used the custom ad 1 spot in this example, you can use others if needed and make the modification in the code
<?php echo do_shortcode ('[td_block_ad_box spot_id="custom_ad_1"]'); ?>
Note that this will affect only posts that use the edited post template.
Thanks
Hi,
The top grid cannot be disabled, unless you remove all posts from the Featured category so it will not appear, but that is not a good solution.
You could achieve that a different way, it will require a modification to the mobile front page template. The slider can be then placed above the top grid, like this
– https://www.screencast.com/t/EdPqz4Ode
– https://www.screencast.com/t/F5pmyn1oY1
<?php echo do_shortcode ('enter shortcode here'); ?>
The result would be like this – https://www.screencast.com/t/iyizmSRu0a
Some margins could be added to top and bottom if needed
– https://www.screencast.com/t/TagJsncTRb
This would be the code for that, you can modify the pixel values as you wish, then enter the code in Theme panel->Mobile theme->Custom CSS code section
.rev_slider_wrapper {
margin-top:5px!important;
margin-bottom:5px!important;
}
If you want the slider to be full width (no margin left or right) that can be done in the slider settings
– https://www.screencast.com/t/KBRtdV3o7y7q
– https://www.screencast.com/t/IhIWzEvv
Result – https://www.screencast.com/t/sPIvQk6BdT
The top and bottom margin would be like this if you make the slider full width
– https://www.screencast.com/t/866eQxCEh
.forcefullwidth_wrapper_tp_banner {
margin-top:5px!important;
margin-bottom:5px!important;
}
Thanks
Hello by1411,
For example, if you are using the post template style 1 you should edit the loop-single-1.php and add the do_shortcode code to display your HTML code, according to the following screens like this -> https://www.screencast.com/t/dSvkGjI7T -> https://www.screencast.com/t/Insh20v5Bu
Hope this helps!
Thanks for your understanding!
Hi
Thanks for that, the geotargetting plugin is working alright, just not in the ad positions.
Here is a quote from your website ‘[shortcodes] – The spot will run do_shortcode() on the ad. Using shortcodes you can include adRotate ads into that spot.’
So you mention adrotate there, does that mean it (adrotate) is a tested plugin too? This would be a solution for us if so?
Thanks
Daragh
Hi,
In order for that ad to appear in the header, you will have to modify the header template used. There you could enter the custom ad through a do_shortcode
<?php echo do_shortcode ('your shortcode here'); ?>
In this example I have set an Ad-box element on a page, and set a background for the row just like you did
– https://www.screencast.com/t/EV89r3ThoWY
Then using the code of these elements in the shortcode
– https://www.screencast.com/t/80go1NXi
– https://www.screencast.com/t/kLWwIoUC5x
The result is like this, the ad is integrated in the header on all the website
– https://www.screencast.com/t/aeeR4No4
– https://www.screencast.com/t/1JjUTcOGQ
I believe this is what you want to do, this would be a method of achieving this.
Thanks
hi
I am trying to use shortcodes for a geotargeting plugin in the header ad position. Can you let me know if shortcodes are permitted.
I read this [shortcodes] – The spot will run do_shortcode() on the ad. Using shortcodes you can include adRotate ads into that spot.
But it does not seem to work for me. Here is what i have pasted.
[geot country=”GB”] [/geot]
With banner code example followed from this posthttps://forum.tagdiv.com/header-ads-adsense/
Live site radio.christmasfm.com
Thanks
Daragh
Hello Rune,
Notice that what you want is not easy to get and you should create a code which put automatically the ad space after each 3 or 4 articles.
You can add the code like this – http://screencast.com/t/W7VY918Dr3Pw
$adcounter++;
if (is_category()) {
if ($adcounter == 2) {
echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');
}
elseif($adcounter == 4){
echo do_shortcode('[td_block_ad_box spot_id="custom_ad_2"]');
}
}
Hope this helps!
Thanks for your understanding!
Hello,
I want to replace the Featured Image with a Revolution Slider. There is a method to replace it at https://www.themepunch.com/revslider-doc/add-on-featured-slider/ utilizing the following sample code:
$total_image = wp_get_attachment_image_src( get_post_thumbnail_id() , 'total-blog-header' );
echo do_shortcode('[featured_revslider][/featured_revslider]');
Your code doesn’t quite match up since it doesn’t use $total_image but rather it uses:
echo $td_mod_single->get_image('td_696x0');
How can I update the loop-single.php code to incorporate the slider? I have tried the following to no avail.
// override the default featured image by the templates (single.php and home.php/index.php - blog loop)
if (!empty(td_global::$load_featured_img_from_template)) {
echo $td_mod_single->get_image(td_global::$load_featured_img_from_template);
} else {
//BEGIN SLIDER REVOLUTION FEATURED IMAGE REPLACEMENT END
if (empty($total_image[0])) {
echo $td_mod_single->get_image('td_696x0');
} else {
echo do_shortcode('[featured_revslider][/featured_revslider]');
}
//END SLIDER REVOLUTION FEATURED IMAGE REPLACEMENT
// echo $td_mod_single->get_image('td_696x0'); //ORIGINAL CODE IN THIS BLOCK
}
Hi,
I use a plugin called WP Store locator that uses a custom post type called “wpsl_stores”. This one is already recognized and listed successfully in the Theme Panel of your Theme as a custom post type.
The plugin offers the option to use a custom store page template that I have already used very successfully with my old theme. You can see it working properly with my old theme here: https://www.mudradar.de/ocr-trainingslocation/stuntwerk-koeln
After switching to your theme I wanted to use my custom post template again. To avoid any incompatibilities I decided to do it step by step and create a custom post template along your tutorial and documentation.
As described here: https://forum.tagdiv.com/custom-post-type-support/ I created a new custom single template for it in my child theme.
I copied the “single_template_1.php” into my child theme folder “Newspaper-child” and renamed it into “single-wpsl_stores.php”. I also copied “loop-single-1.php” and renamed it into “loop-single-wpsl_stores.php”.
In my “single-wpsl_stores.php” I changed “locate_template(‘loop-single-1.php’, true);” into ” locate_template(‘loop-single-wpsl_stores.php’, true);” to make the correct loop file been loaded.
../wp-content/themes/Newspaper-child/single-wpsl_stores.php
../wp-content/themes/Newspaper-child/loop-single-wpsl_stores.php
So I made my changes in the “loop-single-wpsl_stores.php” in the <div class=”td-post-content”> exactly the way I did it when using my old theme:
<div class="td-post-content">
<?php //echo $td_mod_single->get_content();?>
<?php
global $post;
$queried_object = get_queried_object();
$address = get_post_meta( $queried_object->ID, 'wpsl_address', true );
$city = get_post_meta( $queried_object->ID, 'wpsl_city', true );
$country = get_post_meta( $queried_object->ID, 'wpsl_country', true );
$destination = $address . ',' . $city . ',' . $country;
$direction_url = "https://maps.google.com/maps?saddr=&daddr=" . urlencode( $destination ) . "";
// Add the map shortcode
echo do_shortcode( '[wpsl_map height="350" zoom="14"]' );
// Add the content
$post = get_post( $queried_object->ID );
setup_postdata( $post );
the_content();
wp_reset_postdata( $post );
// Add the address shortcode
echo "<h2>Adresse & Kontakt</h2>";
echo do_shortcode( '[wpsl_address]' );
// Add the small map shortcode
echo do_shortcode( '[wpsl_map width ="350" height="200" zoom="14" map_type_control="false"]' );
echo '<p>' . __( 'Route planen', 'wpsl' ) . ' </p>';
// Add the opening hours
echo "<h2>Öffnungszeiten</h2>";
echo do_shortcode( '[wpsl_hours]' );
?>
</div>
I uploaded both files into my “Newspaper-child” Theme folder but found out that my changes and amendments are not fully accepted.
I expected to get a page that shows it like here (https://www.mudradar.de/ocr-trainingslocation/stuntwerk-koeln) with the following Elements:
– Map from shortcode
– Content from Editor
– Adress from shortcode
– small Map from shortcode
– Directions link
– opening hours from shortcode
Instead of this, additional information are displayed:
– Map from shortcode
– Content from Editor
– Map = NOT OK
– Adress = NOT OK
– Opening hours = NOT OK
– Adress from shortcode
– small Map from shortcode
– Directions link
– opening hours from shortcode
It seems as if the_content(); (btw: I also tried it with echo $td_mod_single->get_content(); with same results) shows not only the content from the editor (as expected) but also the additional fields where the address and opening hours and the map are maintained in the backend.
Adress & opening hours are part of a box called “store details” and the map is part of a box called “Store Map” in the backend.
It seems as if my custom post template is handled in another way at it has been done before with my old theme. The extra boxes “store details” and “Store Map” haven’t been displayed before switching to your theme and I am wondering how to avoid this.
Do I have forgotten to make any changes in the theme Panel? Or is there a way to filter the additional information?
Looking forward to getting your suggestions on this. Many thanks in advance,
Dinah
Hi,
Well you will need a plugin to add the icons as our theme doe snot have that particular design for the social icons but maybe a plugin can be implemented with a similar design and you will only have to insert the shortcode of the plugin through coding. You can insert a shortcode through this function: https://developer.wordpress.org/reference/functions/do_shortcode/
Thank you!