- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsDefault Block Settings Guide
- TutorialsOffset Feature
Good theme with lots of options but I seem to have a problem when creating a homepage as a “page” instead of a blog listing. As a news site, we use bylines of many different writers who provide copy through syndications or wire services we subscribe to. The articles are posted via a “CHB” account and then we apply the correct bylines of writers using the “byline” plug-in. If we use the “blog” home page from recent posts, the “byline” names appear properly but when we create a new home page using TD Composer, the bylines are lost and the “CHB” line appears instead as the writer who created the article. This didn’t happen with the WP Bakery VC Composer but we are like the TD Composer and are using it to create our home page. The bylines appear find on the category archive page listings and the post template but not on the articles and excerpt used one the home page.
Example: Here is the latest homepage: https://www.capitolhillblue.com As you can see the lead article in the biggrid list at the top lists “CHB’ as the author because the article uses that ID and not the “byline” that is supposed to appear.
Second Example: https://www.capitolhillblue.com/node/69693 This is an article that appears from the link on the home page. The correct byline is listed in it.
Third Example: https://www.capitolhillblue.com/node/category/congress This is an archive page. The correct “bylines” appear in the BigGrid on the top of the page and also on most recent articles listed under it.
Is there a coding that can correct the listing on the home page?
Hi,
You could remove the styling the demo adds, from the demo stylesheet
– https://www.screencast.com/t/sA5Mscbzk33e
That will have this result – https://www.screencast.com/t/bx7cZbtZDC
The block header style or title color for blocks used in post sidebars, can be set for each block if you want to use the same template 6 as on homepage
– https://www.screencast.com/t/KLYdllLpU
Thanks
Hello ufuksen,
I have inspected your website page and I saw that your search page is using the module_16 which are not working good. Please try to disable all of the untested plugins because I saw that you are using something like this which can interact with the theme core files and causes a lot of unknown issues. Try to disable all of these and leave just to active only the plugins that come bundled with the theme core files and rule out any conflicting plugins. If the problem is still there, I recommend you to make a new clean install from scratch via FTP way, clear all the caches and check the results. Please keep in mind that I have tested this module to my website and the search results seem to work as expected, without any problems. Try to clear all the caches, purge CDN files if you are using something like this and check the results. The problem is that the thumbs for search template are not right cropped and that’s why you do not bring good results. Check here -> https://www.screencast.com/t/ft726CVpMX After you have followed all of these steps and if the problem is still there, you should Regenerate your thumbnails with Thumbnails Regenerate or Force Regenerate.
Hope this helps and let us know how it goes!
Thanks for your understanding!
Hello, we are trying to control the sort order of the tag page. It is currently displaying posts in oldest->newest. Can you please let us know if it’s possible to change the Tag Template to display posts from the newest->oldest instead?
With basic usage, using most AMP plugins including the ‘official’ one from Automattic, the video has to actually be in the post meta. Or, you need to use a plugin that attaches it properly to the footer hook in AMP template with proper AMP format for video.
Generally videos “outside” the post meta won’t show up in the AMP page.
And of course, you can check this by simply going to your amp page in browser with the /amp/ endpoint.
Hello Catalin,
Thank you for your reply. I know you can’t change shop background color in option theme. I just ask for the CSS code, because i don’t know to use it, not a lot…. I try to find with browser inspector but it’s like alien language for me.
For background shop i got this code:
body class=” archive post-type-archive post-type-archive-product logged-in admin-bar woocommerce woocommerce-page global-block-template-1 td-black wpb-js-composer js-comp-ver-4.12.1 vc_responsive td-animation-stack-type1 td-full-layout customize-support td-js-loaded body-td-affix”
on styles part:
.td-black
background-color: #1a1a1a;
color: #eee;
/*
What i have to copy on Newspaper CSS customize? Change “black” by “white”?
A little help ll be appreciate. Thank you!
Hi,
The theme does not have any options like that. That would only be possible by creating such conditions based on category/categories in the header templates and files. Some somewhat similar topics here
– https://forum.tagdiv.com/topic/display-different-top-bar-menu-with-php/
– https://forum.tagdiv.com/topic/conditional-logic-for-menu/
– https://forum.tagdiv.com/topic/different-headers-on-pages/
– https://codex.wordpress.org/Conditional_Tags
Thanks
Any help related to category page.
Suppose we have a main category Parent and its sub categories child, test and xyz.
Now when user click on main category page, it mix up with parent and child category post but i want to show it like example below
Category Page :
Main Category Heading
Sub Category1 Heading and post below
Sub Category2 and post below
Sub Category 3 Heading and posts
and so on
Hi guys, i’m using template n.9 and i put the youtube url link on the right side of the post in the video texture. So doing in my amp page i cannot see video, and Search console gives me a warning. i’m using this plugin https://wordpress.org/plugins/accelerated-mobile-pages/ to show amp pages.
here is the file that works perfectly – if you do not use buddypress.
<?php
/* —————————————————————————-
the default page template
*/
get_header();
//set the template id, used to get the template specific settings
$template_id = ‘page’;
$loop_sidebar_position = td_util::get_option(‘tds_’ . $template_id . ‘_sidebar_pos’); //sidebar right is default (empty)
//get theme panel variable for page comments side wide
$td_enable_or_disable_page_comments = td_util::get_option(‘tds_disable_comments_pages’);
//read the custom single post settings – this setting overids all of them
$td_page = td_util::get_post_meta_array($post->ID, ‘td_page’);
if (!empty($td_page[‘td_sidebar_position’])) {
$loop_sidebar_position = $td_page[‘td_sidebar_position’];
}
// 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’;
}
/**
* detect the page builder
*/
$td_use_page_builder = td_global::is_page_builder_content();
if ($td_use_page_builder) {
// the page is rendered using the page builder template (no sidebars)
if (have_posts()) { ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class=”td-main-content-wrap td-main-page-wrap td-container-wrap”>
<div class=”<?php if (!td_util::tdc_is_installed()) { echo ‘td-container ‘; } ?>tdc-content-wrap”>
<?php the_content(); ?>
</div>
<?php
if($td_enable_or_disable_page_comments == ‘show_comments’) {
?>
<div class=”td-container”>
<div class=”td-pb-row”>
<div class=”td-pb-span12″>
<?php comments_template(”, true); ?>
</div>
</div>
</div>
<?php
}
?>
</div> <!– /.td-main-content-wrap –>
<?php endwhile; ?>
<?php }
} else {
//no page builder detected, we load a default page template with sidebar / no sidebar
?>
<div class=”td-main-content-wrap td-container-wrap”>
<div class=”td-container tdc-content-wrap <?php echo $td_sidebar_position; ?>”>
<div class=”td-crumb-container”>
<?php echo td_page_generator::get_page_breadcrumbs(get_the_title()); ?>
</div>
<div class=”td-pb-row”>
<?php
switch ($loop_sidebar_position) {
default:
?>
<div class=”td-pb-span8 td-main-content” role=”main”>
<div class=”td-ss-main-content”>
<?php
if (have_posts()) {
while ( have_posts() ) : the_post();
?>
<div class=”td-page-header”>
<h1 class=”entry-title td-page-title”>
<span><?php the_title() ?></span>
</h1>
</div>
<div class=”td-page-content”>
<?php
the_content();
endwhile;//end loop
}
?>
</div>
<?php
if($td_enable_or_disable_page_comments == ‘show_comments’) {
comments_template(”, true);
}?>
</div>
</div>
<div class=”td-pb-span4 td-main-sidebar” role=”complementary”>
<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” role=”main”>
<div class=”td-ss-main-content”>
<?php
if (have_posts()) {
while ( have_posts() ) : the_post();
?>
<div class=”td-page-header”>
<h1 class=”entry-title td-page-title”>
<span><?php the_title() ?></span>
</h1>
</div>
<div class=”td-page-content”>
<?php
the_content();
endwhile; //end loop
}
?>
</div>
<?php
if($td_enable_or_disable_page_comments == ‘show_comments’) {
comments_template(”, true);
}?>
</div>
</div>
<div class=”td-pb-span4 td-main-sidebar” role=”complementary”>
<div class=”td-ss-main-sidebar”>
<?php get_sidebar(); ?>
</div>
</div>
<?php
break;
case ‘no_sidebar’:
?>
<div class=”td-pb-span12 td-main-content” role=”main”>
<?php
if (have_posts()) {
while ( have_posts() ) : the_post();
?>
<div class=”td-page-header”>
<h1 class=”entry-title td-page-title”>
<span><?php the_title() ?></span>
</h1>
</div>
<div class=”td-page-content”>
<?php
the_content();
endwhile; //end loop
}
?>
</div>
<?php
if($td_enable_or_disable_page_comments == ‘show_comments’) {
comments_template(”, true);
}?>
</div>
<?php
break;
}
?>
</div> <!– /.td-pb-row –>
</div> <!– /.td-container –>
</div> <!– /.td-main-content-wrap –>
<?php
}
get_footer();
Hello, colleagues!
Now your template is 1068px, but we want to extend page content width to 1200px.
Except to modify .tdc-row {width: 1200px} is there more steps to do this?
Explain, please.
Thank you in advance!
Yordan
Hi,
Unfortunately the theme does not have such a functionality for the post featured image. There is no option to open a custom link when clicking the featured image. I really could’t say how you could create links dynamically for each individual post.
Something like that could be possible if you were to use a post template that does not display the featured image in the post page, that way you could enter the image in the post content with a link. Like post templates 5 or 12
– https://forum.tagdiv.com/post-templates-2/
Thanks
Dear support,
I’d like to create a custom page in visual composer or tagdiv composer. I already read the article about the tagdiv composer but it seems you can only load blogposts into the columns.
When I create a new page I can only choose for the tagdiv composer. The pagebuilder button doesn’t show up. It is installed. How can I create a custom page with multiple columns?
Kind regards
EDIT:
I did find the button now. I just looked different than in the tutorial video. Now I can’t find the templates. Is there a place I can download them?
P.S.
I read that “Mobile Theme” comes with a single predefined page template that includes two section:
top grid – displays 3 featured posts (posts included in the Featured category)
latest articles – displays the latest articles”
Well, this would be fine for me, the problem is on mobile displays only latest articles, not top grid.
wccg1045fm.com
wp booster error:
The path /home2/wccgfmc1/public_html/wp-content/themes/Newspaper/parts/footer/td_sub_footer_template_1.php of the template id: td_sub_footer_template_1 not found.
/home2/wccgfmc1/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
Pls help,
after update to 8.5.1 there is a error on every page:
”
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: td_api_sub_footer_template is not set.
wp booster error:
Missing parameter: ‘file'”
reinstalled the theme, disabled all plugins, problem persists.
i can toggle it on/off via “theme panel -> footer -> sub footer”. How can I get rid of this error?
Thanks!
Hi,
That would be block header template 13
– https://demo.tagdiv.com/newspaper/block-header-13/
Edit the page and enter the text you want for the big title
– https://www.screencast.com/t/heO1O0CG
Thanks
Hello thushy,
Please notice that here is talking about a simple module 11 -> https://www.screencast.com/t/dwfKAvrHI. If you want to make something like this you should create a simple page with latest articles as the page template and set up the module 11 and then make a custom link into your top bar which has to be linked to that page. That’s all. Press here -> https://forum.tagdiv.com/page-templates-2/ for more information about page templates.
Thanks for your understanding!
Hi,
That would be the overlay menu page template
– https://www.screencast.com/t/p5cgVU4tAM
The page templates should work with both composers.
Thanks
That is not my experience. I need to explicitly turn off that setting for the post type ‘download’ or the more articles slider comes in as I scroll the page.
So my question stands: is there some official way to locally suppress a global setting from my template like the update_temp() function does, or is the only official way to copy and edit the more articles PHP file in my child theme?
I would request that the deprecated status of the update_temp() be lifted, and it be kept as official for such purposes. It is much simpler in this case.
Thanks!
I’m bringing up an online storefront on my existing Newspaper8 site using EDD. The way EDD works it only lets me use the default page style from Newspaper8, so I have had to create a child theme and create single-download.php to make it look like I want.
I am able to tweak this template to override everything I want to disable (the social share, the “Related Articles”, ads, etc.) using the template and overriding the short code for ads and adding a simple conditional based on the post type ‘download’.
I also want to override the “more articles” slider element so it does not show up on posts of type ‘download’. While digging through the code I found a method td_options::update_temp() that lets me do exactly what I want by just adding a single line to the template. However, that method is documented with a “deprecated” warning not to use it. This solution is just so simple:
td_options::update_temp('tds_more_articles_on_post_pages_enable','no');
So my question is if there is any other approved official way to override a setting for my post type this way?
The other option I have is to copy the includes/wp_booster/td_more_article_box.php file into my child theme and add a one-line change to add the conditional there, but that just makes for more long-term maintenance work for me on every theme update.
Hello,
I am writing to request that you develop the option for the main menu to be stretched across the full width of the browser window + be fixed atop as a standard feature to your templates as an admin panel option.
I had someone here help me set up mine on my sites, one of which is Pavlikeni.com if somebody wants to see how it looks/behaves.
In support of my request for bringing this option to your templates I would like to ask you to look at CNN.com and NBA.com and nba.com/bulls/?splash=off to name a few. There are plenty of other reputable sites with the same header menu.
I think you should not deprive your users / clients from being able to integrate as described above.
Thanks.
Thanks Simion,
I want to share this:
Plugin: Sharethis
MOBILE
Newspaper/Mobile/Single.php
<?php
/**
* Created by ra.
* Date: 10/23/2015
*/
global $post;
//increment the views counter
td_page_views::update_page_views($post->ID);
get_header();
if (have_posts()) {
td_global::load_single_post($post);
$td_mod_single = new td_module_single_mob($post);
?>
<div class="td-container">
<!-- breadcrumbs -->
<div class="td-crumb-container"><?php echo td_page_generator_mob::get_single_breadcrumbs($td_mod_single->title); ?></div>
<!-- post content -->
<?php the_post(); ?>
<article id="post-<?php echo $td_mod_single->post->ID;?>" class="<?php echo join(' ', get_post_class());?>" <?php echo $td_mod_single->get_item_scope();?>>
<div class="td-post-header">
<?php echo $td_mod_single->get_category(); ?>
<header class="td-post-title">
<?php echo $td_mod_single->get_title();?>
<?php if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) { ?>
<p class="td-post-sub-title"><?php echo $td_mod_single->td_post_theme_settings['td_subtitle'];?></p>
<?php } ?>
<div class="td-module-meta-info">
<?php echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
<?php echo $td_mod_single->get_comments();?>
<?php echo $td_mod_single->get_views();?>
</div>
</header>
</div>
<div class="td-post-content">
<?php
// 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 {
echo $td_mod_single->get_image('td_696x0');
}
?>
<?php echo $td_mod_single->get_social_sharing_top();?>
<?php echo $td_mod_single->get_content();?>
</div>
<footer>
<?php echo $td_mod_single->get_post_pagination();?>
<?php echo $td_mod_single->get_review();?>
<div class="td-post-source-tags">
<?php echo $td_mod_single->get_source_and_via();?>
<?php echo $td_mod_single->get_the_tags();?>
</div>
<div class="sharethis-inline-reaction-buttons"></div>
<?php echo $td_mod_single->get_next_prev_posts();?>
<?php echo $td_mod_single->get_author_box();?>
<?php echo $td_mod_single->get_item_scope_meta();?>
</footer>
</article> <!-- /.post -->
<?php echo $td_mod_single->related_posts();?>
</div>
<?php
} else {
//no posts
echo td_page_generator_mob::no_posts();
}
comments_template('', true);
get_footer();
View: https://www.screencast.com/t/2ROxmtWBLp3
DESKTOP
CODE: https://www.screencast.com/t/w90uht8VYV
VIEW: https://www.screencast.com/t/f9AA6yEOin
Hi,
I’m having a problem with td composer plugin: when i try to edit an element of my homepage the plugin doesn’t load and save anymore. On the browser’s console appear this:
tdcJobManager.addJob
js_files_for_wp_admin.min.js:26:33
tdcJobManager.addJob - Error callback - textStatus: error errorThrown: Not Found
js_files_for_wp_admin.min.js:24:109
{…}
columns: 3
jobId: 0
postId: "54674"
replyHtml: ""
shortcode: "[td_block_big_grid_6 category_id=\"8\"]"
__proto__: Object { … }
js_files_for_wp_admin.min.js:24:109
tdcJobManager.addJob - ERROR: 404 not found
I dont’t know what is going on. I already tried to remove and re-install the composer plugin and the template (version 8.5.1), i also repaired the database with the wordpress’s official function. Can you please help me?
P.S: the website works fine, it stops to work only when i try to edit a page.
Website: https://gamesquare.it/
Thank you in advance.
Hi Guys I have a problem with my postpage side bar it`s working fine on all individule posts, and other pages but will not show on my postpage? website postpage is: http://vards.net/auction-coin-shop/
I have set all template settings to custom sidebar + position and in post settings.
Thanks.
Gus