Found the problem. TD Composer left behind empty pieces of code when I deleted different elements/rows. I was in a rush to move my equipment out of the rain (working outside) and forgot to screenshot. Very Generic example:
[td_block_text_with_title tdc_css=""""]
The empty deprecated pieces of code are only visible in the normal WordPress Page editor. The text tab is better to find them, look for double html quotes "". I deleted two rows of data, saved, cleared caches (just because), and site is working again.
I’ll have to re-do those two rows, but it’s better than a “Fatal Error” and at least I know where to start troubleshooting if the error comes up again.
This is for anyone who has or may have a “Fatal Error” problem in the future.
Everything was working fine until about 30 minutes ago. Now I can’t add/save things in TD Composer and the site preview shows this error:
Fatal error: Uncaught Error: Class ‘""’ not found in /app/public/wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 181
This is what line 181 looks like from td_block.php
$this->td_block_template_instance = new $td_block_template_id($this->td_block_template_data);
I made NO changes to this file at any point. I have the Envato Market plugin installed. Everything looks up to date. Tested disabling plugins. Cleared all caches. I need this resolved today.
Thank You.
wp editor doesn’t work. just showing blank page. nothing here when click edit content
Hello,
I’m trying to create and set a Posts Page as described for the Front Page here
https://forum.tagdiv.com/homepage-how-to-build-and-set-it/.
I add a new page and edit it with the tagDiv Composer. Works good. But when I set this page as the Posts Page under Settings->Reading I can’t any more access the page with the Composer. I get an error tdcIframeData.init() -> bindViewsModelsWrappers().
How can I set and edit a Posts Page?
Hello aoerem,
Unfortunately, please notice that our blocks do not contain any Ads, sorry! I do not exactly understand what you mean. You can use the TD Composer and add any element you want using the settings from our page builder. Please check here -> https://forum.tagdiv.com/tagdiv-composer-tutorial/ If is not what you mean, please provide more details so I will be able to provide more accurate response/code.
Thanks for the message!
Hello csimply,
You should simply add a single video through a Text with Title element from TD COmposer. You should only copy/paste the video link in the editor.
Thanks for your understanding!
…/wp-content/plugins/td-composer/includes/wpeditor.php?wp_path=/var/www/vhosts/…
getting 403 forbidden error when try to reach wpeditor.php
Ok.
The tagdiv composer uses categories but not custom taxonomies to choose from to display a list of posts.
However it does support custom post type. Is it possible to show custom posts, with the custom taxonomy “alphabetical letter” ?
For instance the cd “Blackstar” would have category “albumreview” and alphabetical letter “ B”
If i can make a custom post type alphabetical letter, show the a,b,c… taxonomy there, would the tagduv composer then show a drop down list of the custom post type with the alphabet in it ?
If so what would be a good way to achieve this ?
…/wp-content/plugins/td-composer/includes/wpeditor.php?wp_path=/var/www/vhosts/…
getting 403 forbidden error when try to reach wpeditor.php
it’s just opening with empty page which has only WP Editor header when I click Edit Content in the header settings one of the elements. I’ve tried to this with the 3 different explorer(chrome, firefox and ie.) How can I solve this problem? I need to reach wp editor to change contents..
Hello TechieBraj,
Unfortunately, the theme does not have any such an option for this, sorry! Notice that we do not recommend to manually increase the theme width because you can easily break the theme layout, sorry! Another alternative for your would be to use a stretch ROW into your content, using the TD Composer on your page, like this ->
For more information about this our TD Composer, please check here -> https://forum.tagdiv.com/tagdiv-composer-tutorial/ -> https://www.screencast.com/t/tiPS2ebUfO
Hope this helps!
Thanks for your understanding!
Hi,
Please advise what is the easiest way how to add a single video on a page?
I am editing page with TD composer however after clicking on ADD ELEMENT option there is no single video element.
I can see just Video Playlist option but I need to add just a single video.
How can I do it with TD composer?
Thanks,
Jan
Hi Guys,
I’ve had this issue over multiple Newspaper versions and I am fully up to date with the latest theme.
When setting the Slide element on the WomensGolf.com front page using TagDiv Composer, it looks very compressed on mobile so I want to hide it on mobile (looks fine on all other screen sizes).
When the slide element is hidden using CSS view in composer it causes the entire page to become unresponsive and crash when viewed on a mobile. As soon as I change to ‘show’ the slide element on mobile, or delete the element, the page is fine again.
Is this a known issue when elements are hidden from mobile view?
Greetings,
The Tagdiv composer didn’t install and when I manually install I get a curl error 28.
Here is a screenshot… Can you help?
http://cruzhost.com/screenshot.jpg
Thank you in advance!
James P. Williams
Also, the need to implement the api is still there.
We have painstakingly created a custom “alphabetical letter” taxonomy to display all posts on one page using a keyword, all posts that have keyword A on page A etc etc.
However since we can not select a custom taxonomy on the tagdiv composer when filtering posts (only categories are allowed) we are stuck.
We have implemented this text into the plugin, which gets us the ARTICLE DISPLAY VIEW icons on the theme panel. however when we select them the page reverts back to the default. could you point us in the right direction please ?
<?php
/*
Plugin Name: td-api-plugin
Plugin URI: http://tagdiv.com
Description: tagDiv API plugin
Author: tagDiv
Version: 1.0
Author URI: http://tagdiv.com
*/
class td_api_plugin {
var $plugin_url = '';
var $plugin_path = '';
var $root = '';
function __construct()
{
$this->root = get_site_url();
$this->plugin_url = plugins_url('', __FILE__); // path used for elements like images, css, etc which are available on end user
$this->plugin_path = dirname(__FILE__); // used for internal (server side) files
add_action('td_global_after', array($this, 'hook_td_global_after')); // hook used to add or modify items via Api
}
function hook_td_global_after() {
//Add new modules
td_api_module::add('td_module_20',
array(
'file' => $this->root . "/wp-content/themes/newspaper-child/includes/modules/td_module_20.php",
'text' => 'Module 20',
'img' => $this->root . '/wp-content/themes/newspaper-child/images/panel/modules/td_module_20.png',
'used_on_blocks' => array('td_block_25'),
'excerpt_title' => 30,
'excerpt_content' => 50,
'enabled_on_more_articles_box' => false,
'enabled_on_loops' => true,
'uses_columns' => true, // if the module uses columns on the page template + loop
'category_label' => true,
'class' => 'td_module_wrap td-animation-stack',
'group' => '' // '' - main theme, 'mob' - mobile theme, 'woo' - woo theme
)
);
td_api_module::add('td_module_21',
array(
'file' => $this->root . "/wp-content/themes/newspaper-child/includes/modules/td_module_21.php",
'text' => 'Module 21',
'img' => $this->root . '/wp-content/themes/newspaper-child/images/panel/modules/td_module_21.png',
'used_on_blocks' => array('td_block_21'),
'excerpt_title' => 15,
'excerpt_content' => '',
'enabled_on_more_articles_box' => true,
'enabled_on_loops' => true,
'uses_columns' => true, // if the module uses columns on the page template + loop
'category_label' => true,
'class' => 'td_module_wrap',
'group' => '' // '' - main theme, 'mob' - mobile theme, 'woo' - woo theme
)
);
}
}
new td_api_plugin();
the text in module 20 for instance looks like this:
<?php
class td_module_20 extends td_module {
function __construct($post, $module_atts = array()) {
//run the parrent constructor
parent::__construct($post, $module_atts);
}
function render() {
ob_start();
$title_length = $this->get_shortcode_att('m20_tl');
?>
<div class="<?php echo $this->get_module_classes();?>">
<div class="td-module-image">
<?php echo $this->get_image('td_150x150');?>
<?php if (td_util::get_option('tds_category_module_20') == 'yes') { echo $this->get_category(); }?>
</div>
<?php echo $this->get_title($title_length);?>
<div class="td-module-meta-info">
<?php echo $this->get_author();?>
<?php echo $this->get_date();?>
<?php echo $this->get_comments();?>
</div>
<?php echo $this->get_quotes_on_blocks();?>
</div>
<?php return ob_get_clean();
}
}
We have created pages for each letter which each run their specific post template, which looks like this:
<?php
/*
Template Name: archief albumrecensie a
*/
get_header();
//set the template id, used to get the template specific settings
$template_id = 'archive';
//prepare the loop variables
global $loop_module_id, $loop_sidebar_position, $part_cur_auth_obj;
$loop_module_id = td_util::get_option('tds_' . $template_id . '_page_layout', 1); //module 1 is default
$loop_sidebar_position = td_util::get_option('tds_' . $template_id . '_sidebar_pos'); //sidebar right is default (empty)
// sidebar position used to align the breadcrumb on sidebar left + sidebar first on mobile issue
$td_sidebar_position = '';
if($loop_sidebar_position == 'sidebar_left') {
$td_sidebar_position = 'td-sidebar-left';
}
//read the current author object - used by here in title and by /parts/author-header.php
$part_cur_auth_obj = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
//prepare the archives page title
{
$td_archive_title = get_the_title();
}
?>
<div class="td-main-content-wrap td-container-wrap">
<div class="td-container <?php echo $td_sidebar_position; ?>">
<div class="td-crumb-container">
<?php echo td_page_generator::get_archive_breadcrumbs(); // get the breadcrumbs - /includes/wp_booster/td_page_generator.php ?>
</div>
<div class="td-pb-row">
<?php
switch ($loop_sidebar_position) {
default:
?>
<div class="td-pb-span8 td-main-content">
<div class="td-ss-main-content">
<div class="td-page-header">
<h1 class="entry-title td-page-title">
<span><?php echo $td_archive_title; ?></span>
</h1>
</div>
<?php locate_template('loop-albumrecensies-a.php', true);?>
<?php echo td_page_generator::get_pagination(); // get the pagination - /includes/wp_booster/td_page_generator.php ?>
</div>
</div>
<div class="td-pb-span4 td-main-sidebar">
<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">
<div class="td-ss-main-content">
<div class="td-page-header">
<h1 class="entry-title td-page-title">
<span><?php echo $td_archive_title; ?></span>
</h1>
</div>
<?php locate_template('loop-albumrecensies-a.php', true);?>
<?php echo td_page_generator::get_pagination(); // get the pagination - /includes/wp_booster/td_page_generator.php ?>
</div>
</div>
<div class="td-pb-span4 td-main-sidebar">
<div class="td-ss-main-sidebar">
<?php get_sidebar(); ?>
</div>
</div>
<?php
break;
case 'no_sidebar':
?>
<div class="td-pb-span12 td-main-content">
<div class="td-ss-main-content">
<div class="td-page-header">
<h1 class="entry-title td-page-title">
<span><?php echo $td_archive_title; ?></span>
</h1>
</div>
<?php locate_template('loop-albumrecensies-a.php', true);?>
<?php echo td_page_generator::get_pagination(); // get the pagination - /includes/wp_booster/td_page_generator.php ?>
</div>
</div>
<?php
break;
}
?>
</div> <!-- /.td-pb-row -->
<div class="archiefmenutitel"></br></br><h1 class="entry-title td-page-title">ARCHIEF</h1></div>
<div class="albumrecensiesabc">
<?php wp_nav_menu( array( 'theme_location' => 'albumrecensiesabc' ) ); ?>
</div>
</div> <!-- /.td-container -->
</div> <!-- /.td-main-content-wrap -->
<?php
get_footer();
and finally the loop it uses
<?php
/**
* If you are looking for the loop that's handling the single post page (single.php), check out loop-single.php
**/
// $global_flag_to_hide_no_post_to_display - comes from page-category-big-grid.php and is a flag to hide the 'No posts to display' message if on category page there are between 1 and 5 posts
global $loop_module_id, $loop_sidebar_position, $global_flag_to_hide_no_post_to_display;
///if we are in wordpress loop; used by quotes in blocks to check if the blocks are displayed in blocks or in loop
td_global::$is_wordpress_loop = true;
$td_template_layout = new td_template_layout($loop_sidebar_position);
if (empty($loop_module_id)) { //not sure if we need a default here
$loop_module_id = 1;
}
$td_module_class = td_api_module::_helper_get_module_class_from_loop_id($loop_module_id);
//disable the grid for some of the modules
$td_module = td_api_module::get_by_id($td_module_class);
if ($td_module['uses_columns'] === false) {
$td_template_layout->disable_output();
}
$args = array(
'post_type' => 'post',
'posts_per_page' => '-1',
'meta_key' => 'keyword',
'orderby' => 'meta_value',
'order' => 'ASC',
'tax_query' => array(
'relation' => 'AND',
array(
'taxonomy' => 'alphabetical_letter',
'field' => 'term_id',
'terms' => array( '441' ), //this is by slug
),
array(
'taxonomy' => 'category',
'field' => 'slug',
'terms' => array( 'muziek-recensies' ), //this is by id
),
),
);
// The Query
query_posts( $args );
// The Loop
if (have_posts()) {
while ( have_posts() ) : the_post();
echo $td_template_layout->layout_open_element();
if (class_exists($td_module_class)) {
$td_mod = new $td_module_class($post);
echo $td_mod->render();
} else {
td_util::error(__FILE__, 'Missing module: ' . $td_module_class);
}
echo $td_template_layout->layout_close_element();
$td_template_layout->layout_next();
endwhile; //end loop
echo $td_template_layout->close_all_tags();
} else {
/**
* no posts to display. This function generates the __td('No posts to display').
* the text can be overwritten by the themplate using the global @see td_global::$custom_no_posts_message
*/
echo td_page_generator::no_posts();
}
all of this was working fine since all of the code was directly implemented in the td config php file, which gets overwritten when you update the theme. all I thought I would have to do is implement the said code in the plugin api but clearly this isn’t how it should be done. I’m fearful that weeks of work on this alphabetical archive have been for nought…
-
This reply was modified 8 years by
NickDeBaerdemaeker.
Thanks for the quick reply. I tried deactivating the tagDiv Composer in plugins and now I’m getting a grey placeholder image with “Add Image to Your Element!”. The image ceases to render. Any ideas?
Hi there,
Approximately for 15 days, we are trying to change our theme to Newspaper theme. But We had some problems after changing. Our website is; https://muscleandfitness.com.tr/
After changing,
1. We are no longer adding any picture into our WP library, (it shows 404 error when I go to URL of the image)
2. Sometimes, the look of the website is changing randomly, and tagDiv composer plugin becomes passive without any interfere, I don’t know why.
3. Sometimes the still file is not being loaded, the home page look weird, I don’t know why.
4. The Website speed is very slow compering to the previous one.
I would be appriciate if you help us.
Thank you already.
Hi,
There will be problems when both composers are active, some elements will not work properly. Deactivate the tagDiv composer in this case and everything will look and function as before.
Note that the tagDiv composer will be activated automatically when the theme is updated.
Thanks
The predefined content does not appear there, by predefined I mean in the actual footer template PHP file.
If you use a predefined template and also add widgets to those footer columns, they will be displayed below the predefined content
– https://www.screencast.com/t/qc0TOzluHQw
– https://www.screencast.com/t/KJbxmHNOVR
If you choose an empty template, there will be no predefined content, only you widgets will be displayed
– https://www.screencast.com/t/rFt15ZC1b1
– https://www.screencast.com/t/rcG5zzIxaAG
You can also create a page with the tagDiv composer and display that in the footer if you want to, instead of a footer template
– https://www.screencast.com/t/xmve6Fi7Mvbv
The cloud library plugin provides some footer pages that can be imported and set. You can import and then modify these if needed, or create your own page
– https://www.screencast.com/t/ot5bVXTz
– https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
Hope this helps. Let me know if you have more questions and I will try to help you.
Thanks
Hello miguel_dimase,
I suppose that you want to change the position of your Category Tag from your modules on pages and for your single posts, right? If you want to affect the modules, you should edit the module files like this -> https://www.screencast.com/t/v53mtUjVC1QS (from here you can change the position of the category tag) and if you want to make some changes over that section on your posts, notice that you need to choose or create your single post template from Cloud Library and then, edit it with TD Composer and change the position of the Category Tag, like this -> https://www.screencast.com/t/0q5T8CIenOdM
For more information about our Cloud Library Template, please check here -> https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
Thanks for your understanding!
Indeed, the category templates can now be created with the tagDiv composer and cloud library plugin, use any elements available. We will add more beautiful ready made templates in coming updates.
So you are referring to this menu? – https://www.screencast.com/t/IatOqgCMPu
That seems to be made with a plugin or some other implementation, can’t say exactly. You could use the list menu element instead
– https://www.screencast.com/t/4u8sycOspJ
The thumbnails in the post loop section in the cloud category templates can be modified, the loop uses a flex module
– https://www.screencast.com/t/JFgzUSts
From what I can see the counter displays accurate information now
– https://www.screencast.com/t/HYexcAqb
When the theme is updated the social counter and tagDiv composer plugins should update automatically, it seems however that this fails sometimes. If that is the case they will deactivate themselves and an “Update” button should be displayed here for the plugins
– https://www.screencast.com/t/ZR5e0B08Fl
Once you manually update the plugins would work properly.
If you use WPBakery and the tagDiv composer simultaneously, in some situations there might be problems. But not with the social counter, that would work with either of them.
Hi,
That can be done in the template with the tagDiv composer. Click on the post content element and there will be font properties in the composer sidebar
– https://www.screencast.com/t/6rV6luJLu
Thanks
Hi,
Unfortunately such an element or featured does not exist at the moment in the tagDiv composer or in the theme. I believe this is added on our request list, it will be considered. Sorry for the inconvenience.
Maybe you could try some plugins that could provide you this option, make tests with them.
Thanks
I recently upgraded Newspaper 6 to Newspaper 8 and I am noticing that the Custom Links in all VC Single Image modules cease to render and ignore any parameters entered into custom_link field. The hyperlink is replaced with only a single hashmark and the field is ignored. I have attempted to edit the raw text as well as using the WPBakery Page Builder and the fields are saved and editable but ignored when rendered in both. I have also attempted to manually use the parameter “link” as well as “img_link” by editing the raw shortcode in the build-in WordPress editor in Text mode and it also fails to render.
Here is an example of the raw shortcode text using the build-in WordPress view to show the raw code that I am attempting:
[vc_single_image image="14780" img_size="full" onclick="custom_link" img_link="/breast-health/" el_id="breast-health-link" link="/breast-health/"]
And here is how the VC Single Image is rendered in the DOM:
<a class="td_single_image_bg" style="background-image: url('https://[REDACTED IMAGE URL HERE].jpg'); background-size: cover; background-repeat: no-repeat; background-position: center center;" href="#" rel="bookmark"></a>
You can see that neither the href field is being populated from the link or img_link field, nor the id field from the el_id field is being rendered.
These fields works perfectly fine in Newspaper 6, but not on the upgraded Newspaper 8.8.2. I have attempted to render this in a child theme of Newspaper 8 as well as the native Newspaper 8 theme and both fail. The plugin versions in use are
- WPBakery Page Builder 5.5.1
- td-api-plugin 1.0.2
- tagDiv Speed Booster 4.9.1
- tagDiv Social Counter 4.4
- tagDiv Composer 2.3
- tagDiv Books custom post types sample 1.0
- Slider Revolution 5.4.8
Hopefully someone can point me in the right direction to fix this.
Thanks.