Search Results for 'page template'

Results from the Forum
Calin
tagDiv Staff

Hi,

In order to change the number for the post that are display you need to go in Settings>Reading -> https://www.screencast.com/t/CpnuFAnS
And for layout out you need to go on homepage look for Homepage Latest Articles -> https://www.screencast.com/t/9zCB77fYRt -> https://forum.tagdiv.com/page-templates-2/

Hope this will help you!
Thanks

Simion C.
tagDiv Staff

Hi,

So basically you want to move the latest articles section at the top? That would be possible. Change the page template to the default page template so that the latest articles section from the bottom of the page will be removed.

Then edit the page with the composer and add a loop element at the top of the page. The loop element is essentially a latest articles section. It has many design settings so it can be made to look in many ways.

There are a few loop examples in the cloud library, these can be imported
https://affiliate.tagdiv.com/#/load/Blocks
Or you can create your own design.

Thanks

Giorgos3
tagDiv Member

Hello,

Thank you for your quick reply.

I have remove the code from page.php category.php loop-single.php and i make a dir into the child theme call parts under Newspaper-child and there i implement my code into footer.php and still the same issue tagdiv is not working have the same error.

I am using td_footer_template_14 as a default one.
Shall i implement my code there and remove the code from footer.php?

Please advice.

Simion C.
tagDiv Staff

Hi,

Normally there would be two places where the latest articles section settings can be accessed, in the backend of the page and in the composer directly
https://forum.tagdiv.com/page-templates-2/

Due to an issue these settings seem to not appear in both those places as intended
– https://forum.tagdiv.com/topic/cant-edit-some-sections-with-tagdiv-composer/
This issue will be solved in the coming theme update, sorry for this inconvenience.

Thanks

wilhard
tagDiv Member

My question is not about the plugin, but is about your theme. If there is a word plugin in the text that doesn’t automatically mean that there is no support))).

I wrote that the theme put the function comments_template in the middle of the Home page, but I do not need comments in the middle of the home page. How do I fix it?

Thank you in advance!

Calin
tagDiv Staff

Hi,

IN order to add those modifications to AMP you need to edit the html-start.php , in order to do that you need to go in wp-content/plugins/td-amp/templates/html-start.php
https://www.screencast.com/t/kjlUUau1

Also you can check this documentation too -> https://www.bizyfi.com/how-to-add-meta-description-tag-to-amp-pages-in-wordpress/

Hope this will help you!
Thanks.

nexttvc
tagDiv Member

<!doctype html >
<!–[if IE 8]> <html class=”ie8″ lang=”en”> <![endif]–>
<!–[if IE 9]> <html class=”ie9″ lang=”en”> <![endif]–>
<!–[if gt IE 8]><!–> <html <?php language_attributes(); ?>> <!–<![endif]–>
<head>
<title><?php wp_title(‘|’, true, ‘right’); ?></title>
<meta charset=”<?php bloginfo( ‘charset’ );?>” />
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
<?php
wp_head(); /** we hook up in wp_booster @see td_wp_booster_functions::hook_wp_head */
?>
</head>

<body <?php body_class() ?> itemscope=”itemscope” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/WebPage”>

<?php /* scroll to top */?>
<div class=”td-scroll-up”><i class=”td-icon-menu-up”></i></div>

<?php locate_template(‘parts/menu-mobile.php’, true);?>
<?php locate_template(‘parts/search.php’, true);?>

<div id=”td-outer-wrap” class=”td-theme-wrap”>
<?php //this is closing in the footer.php file ?>

<?php
/*
* loads the header template set in Theme Panel -> Header area
* the template files are located in ../parts/header
*/
td_api_header_style::_helper_show_header();

do_action(‘td_wp_booster_after_header’); //used by unique articles

This is the only code I have in my theme header php

upgrade81
Participant
#0

hello, can you tell me if can use the classic wordpress shortcode example: do_shortcode (‘[rt_reading_time]’ when using a Cloud Template related to single “post” pages?

Currently I can use shortcodes, but only using the classic templates and modifying the relative loop-single-2.php in the child theme. Vice versa with the Single Post Template 7 I do not know where to intervene.

Thank you.

BorislavBigi
tagDiv Member

Thanks for answering!
on my site popcornscreen.com everything fine with ads, ads are show on every article,every page, sidebar and on bottom. And i’m using your advice with template 15 and i put code in bottom ads and article inline ads in ‘template ads section’, but ads doesnt show up, can you inspect this http://popcornscreen.com/filmska-recenzija-welcome-to-marwen-2018/ i’m using on this post template 15 to test.

barnisayz
tagDiv Member

Hi,
Thanks. What I’m looking is the kind of video template shown on the home page of most Demos

Simion C.
tagDiv Staff

So you want that widget to always appear in the pages and posts. You could add that widget in the footer area, or maybe in the footer template file
https://www.screencast.com/t/VxVJPYOOYHC
And wrap the code for the widget in a condition to appear only in pages and posts with PHP, if this is possible with the widget. That shouldn’t cause any problems in the composer.

Simion C.
tagDiv Staff

Hi,

With the cloud library that is possible – https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
With it you can use the tagDiv composer to create a tag template and apply it for the tag pages. These are the available tag templates created by us, we will try to add more (you can preview and even edit them)
https://affiliate.tagdiv.com/#/load/Tag
The template can be applied in the theme panel – https://www.screencast.com/t/Upj7MR3FvN
You can also design your own by starting with the blank template.

Thanks

jernejpro
tagDiv Member

Hi,
I have a similar issue, the template doesn’t seem to automatically make default pictures so they are displayed on the main page from the pictures in the post anymore. So I have to set the “default picture” every time I make a new post.
This is especially problematic with videos, because it would mean that we’d have to make a screenshot of the video so that a picture would be displayed and upload it – and it was done automatically before. See the last videos here: http://www.novinarji.si/category/video/
Any chance of fixing this or letting us know what to change so these things would be done automatically again?
Thans in advance,
jernej

  • This reply was modified 7 years by jernejpro.
  • This reply was modified 7 years by jernejpro.
wilhard
Participant
#0

Hello, I use the plugin HyperComments for Comments Social Login. Newspaper 9 theme puts comments in the middle of the Home Page (see the screenshot – https://ibb.co/1qzc5DP, website – dev.wilhard.ru).

The HyperComments puts comments to the place where the function comments_template is called in the theme.

How do I fix the problem? I do not need comments at all on the Home Page.

Thank you in advance.

Giorgos3
tagDiv Member

Hello,

Thank you for your quick reply.

I have edit the below file at the child theme:

– function.php i defined the new widget area
– Place position new widget inside the page.php and post.php
– I have change page & post the templates and i add the custom widget.

Thank you in advance.

Catalin
tagDiv Staff

Hi,

Please notice that as you want to achieve involves doing such a custom work and we cannot provide something like this at the moment, sorry! As a hint, if you are using a page template default and if you want to add some elements below your main menu, you need to edit the following core file and add your custom code here -> https://www.screencast.com/t/L6vSAE4Rw87 In the same way you should do for categories page and post pages.

Thanks.

Simion C.
tagDiv Staff

Hi,

The latest articles has options for what you mention – https://forum.tagdiv.com/page-templates-2/
But there is currently an issue, the settings for it do not appear as they should when the template is selected
https://forum.tagdiv.com/topic/cant-edit-some-sections-with-tagdiv-composer/
This issue will be solved in the next theme update, sorry for this inconvenience.

You could also use a post loop element in the page, the loop is similar to the latest articles section. Some loop examples you can preview and even edit here
https://affiliate.tagdiv.com/#/load/Blocks
These can be imported with the cloud library plugin
https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
If you use a loop you can select the default page template instead of the latest articles template.

Thanks

Simion C.
tagDiv Staff

Hi,

So the issue is only happening in the homepage? Was the page built with the tagDiv composer entirely, or does it contain elements that were not added with it? Usually this error is caused by adding content in the page that is not part of the composer.

It could also be caused by plugins, you could make a quick test and deactivate them all, leave only theme plugins active. Check if this solves the problem.
If you made any modifications to the page templates or theme files directly or in a child theme, try to remove them temporarily and test again.

If nothing works, we could take a look. Send us an email at contact@tagdiv.com and provide admin login. Include a link to this topic in the email.

Thanks

Simion C.
tagDiv Staff

Hi,

Then maybe you can find a different solution to implement the ads you want to use, the one you tried with the page template modification is causing problems to the page template in the composer.

Thanks

Simion C.
tagDiv Staff

Hi,

Then it would be somewhat simple, the change you are making to the page template is causing the problem. So when that page template is selected the composer provides the respective error, in no relation to plugins installed.

Maybe there is a different method of doing what you want without this modification to the page template. Please provide some details about it.

Thanks

LenFI
Participant
#0

Hi Guys,

Are there any plans to include the TD Composer on the Tag pages? Would love to have more control on the look and feel of individual tags. I have a football news website and would love to see how I could have different tag pages for clubs, players and leagues for example 🙂

Cheers for an answer

Catalin
tagDiv Staff

Hi,

Notice that the fusion builder, layer slider WP is not tested with the theme and also, we cannot say for sure if it will work as expected with the theme, sorry! If you want to affect the page, category page, and post page, you need to edit the theme’s core files corresponding for each other. For the post page, if you are using the post template style 1, as an example, you need to edit the loop-single-1, for page default template, need to edit the page.php and category template according to your category used by you.

Thanks for your understanding!

finester11
Participant
#0

Hi! Is there a way to change the number and block style of latest articles on the Home page when using “pagebuilder + latest articles + paginator template setting? I’d like to limit it to 5 articles and change the block type to a style with one per row instead of two. Thanks!

http://www.staging2.hownottosail.com

Rufes
Participant
Site Error - topic
#0

Hello!

Since yesterday I have a spontaneous error message on my website. I have not changed or updated the website. But when publishing new messages, I get to see this error message above the message:

> **Warning** : Illegal string offset 'td_post_template' in **/home/vhosting/r/vhost0013083/domains/112-uitgeest.nl/htdocs/www/wordpress/wp-content/themes/Newspaper/includes/wp_booster/td_single_template_vars.php** on line **67**

The entire code of td_single_template_vars.php is:

> <?php
>
> /**
>
> * Created by PhpStorm.
>
> * User: tagdiv
>
> * Date: 10.07.2015
>
> * Time: 15:58
>
> */
>
>
>
> global $loop_module_id, $loop_sidebar_position, $post, $td_sidebar_position;
>
>
>
> //global $wp_query;
>
> //var_dump($wp_query->query_vars);
>
>
>
> td_global::load_single_post($post);
>
>
>
>
>
> /* ----------------------------------------------------------------------------
>
> the post template (single article template)
>
> */
>
>
>
> //get_header();
>
>
>
>
>
> //set the template id, used to get the template specific settings
>
> $template_id = 'home'; //home = blog index = blog - use the same settings from the blog index
>
>
>
> //prepare the loop variables
>
>
>
> //read the global settings
>
> $loop_sidebar_position = td_util::get_option('tds_' . $template_id . '_sidebar_pos'); //sidebar right is default (empty)
>
> $loop_module_id = 1; //use the default 1 module (full post)
>
>
>
> //read the primary category sidebar position! - we have to make the page after the primary category or after the global setting
>
> $primary_category_id = td_global::get_primary_category_id();
>
> if (!empty($primary_category_id)) {
>
> $tax_meta_sidebar = td_util::get_category_option($primary_category_id, 'tdc_sidebar_pos');//swich by RADU A, get_tax_meta($primary_category_id, 'tdc_sidebar_pos');
>
> if (!empty($tax_meta_sidebar)) {
>
> //update the sidebar position from the category setting
>
> $loop_sidebar_position = $tax_meta_sidebar;
>
> }
>
> }
>
>
>
>
>
> //read the custom single post settings - this setting overids all of them
>
> $td_post_theme_settings = get_post_meta($post->ID, 'td_post_theme_settings', true);
>
> if (!empty($td_post_theme_settings['td_sidebar_position'])) {
>
> $loop_sidebar_position = $td_post_theme_settings['td_sidebar_position'];
>
> }
>
>
>
> //set the content width if needed (we already have the default in functions)
>
> if ($loop_sidebar_position == 'no_sidebar') {
>
> $content_width = 980;
>
> }
>
>
>
> //send the sidebar position to gallery
>
> td_global::$cur_single_template_sidebar_pos = $loop_sidebar_position;
>
>
>
> //increment the views counter
>
> td_page_views::update_page_views($post->ID);
>
>
>
>
>
> //added by Radu A. check if this post have a post template to be display with.
>
> //if not use the default site post template from Theme Panel -> Post Settings -> Default site post template
>
> $td_default_site_post_template = td_util::get_option('td_default_site_post_template');
>
>
>
> if(empty($td_post_theme_settings['td_post_template']) and !empty($td_default_site_post_template)) {
>
> $td_post_theme_settings['td_post_template'] = $td_default_site_post_template;
>
> }
>
>
>
> // sidebar position used to align the breadcrumb on sidebar left
>
> $td_sidebar_position = '';
>
> if($loop_sidebar_position == 'sidebar_left') {
>
> $td_sidebar_position = 'td-sidebar-left';
>
> }

So it has to be something with:

$ primary_category_id = td_global :: get_primary_category_id ();

but I can not figure it out. Does anyone have a solution for me?

Thanks in advance

Simion C.
tagDiv Staff

Does it work if you remove the respective modification? If it does, than what you did to the page template is the problem.

Viewing 25 results - 12,901 through 12,925 (of 18,570 total)