- NewspaperDesign your Post Pages using the Cloud Library Templates
- NewspaperDesign your post pages using the Default Templates
- NewspaperPage templates
- NewspaperCreate a form contact page
- NewspaperCloud Library Templates
- NewspaperCloud Library – Category Templates
- NewspaperHomepage – How to build and set it
- NewspaperPost templates
- NewspaperDefault post templates
- NewspaperCategory templates
- NewspaperPost template ads
- NewspaperSingle External Shortcode and External Shortcode
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- NewspaperSearch setup for custom post type
- NewspapertagDiv Composer – Website Manager
- NewspaperBookmark – Save For Later
- NewspaperFlex Block Builder and Flex Loop Builder
- NewspaperModules Builder in Newspaper Theme
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewspaperCreate a frontend submission form
Okay. Well, if you can’t show the code you’re having an issue with hard to help. And image class is just normal CSS .. one can call a CSS class anything and has no impact on Google News or anything else. You can call a CSS class class=”dumbbunnyshoes” and it works just fine.
If you need to, you would have to change the CSS in both the style sheet and all templates that call the CSS class, which is not normal and nobody else is having this issue in Google news that I am aware of (including my own sites).
An example of the actual code (view source from your page, copy/paste, then apply ‘code’ style in this forum thread) to SHOW what code you’re referring to.
Or, wait for Lucian or Marius to try to figure out what you’re doing. I need to see an example of the code on YOUR post page where you’re having this problem code to offer any guidance. Will check back tomorrow.
Hi,
That is the way the unique article feature works on pages, if you activate it then you will have only unique articles on that template so if you want those article to be shown in blocks also then you will have to disable the unique article feature and make sure you use the posts/categories only in one block and just once, you can use filters and to control which posts to display on blocks.
Thanks
hi,
On default templates you can change this title from theme panel > custom typography: http://screencast.com/t/KFIbxgDrnS
If you want to change this on category/archive or other dynamic pages, you can use css like this: http://screencast.com/t/e9XxTy5tNqla
.category .td_mod8 .entry-title a {
font-family: Lobster;
font-size: 50px;
color: red;
}
Hope this helps!
If it doesn’t please send me your site’s URL and point me to the titles you want to change so I can inspect it.
Thanks
Hi,
If the posts are in other category also and you set that category or all categories to show in a specific block the posts should appear in both slider and block if the unique article feature is not activated: http://screencast.com/t/Zqqcamhyp
Please make sure you have the unique article feature disable on your page template and that the posts are in the category you have set to show on block.
Thanks
Hi,
The page title option from theme panel >custom typography apply’s to the page title of default templates. You can change the page title font size/color/family… on category pages and search results page also by using this custom css in theme panel >custom css field:
* http://screencast.com/t/F1omnoOheHBH
* http://screencast.com/t/4GcYhu4EjcvC
.category .td-page-title span, .search-results .td-page-title span {
font-family: Lobster;
font-size: 50px;
color: red;
}
You can updated the theme to the latest version and let us know what issues you encounter and we will try to provide a fix fro them.
Thanks
Hi,
You can set the background for the big slider when using “Homepage – bg – no article list” template from here: http://screencast.com/t/vj3o0qdB
The slider form this template is using posts from featured category and doesn’t have any option to change this, you can do it though by editing page-homepage-slider.php file like this: http://screencast.com/t/7pkwMuRo
Thanks
I just purchased your theme and find it to work quite well. I am using it to create a site that is still under development.
On a post page that will eventually be saved as a template, I am using Block 1 the larger area of a 2/3×1/3 row. The problem is that in Block 1 the first large post image is centered and the additional posts are shown below it rather than to its right.
PS: I can send you the login info to the site if needed but I’m not sure if this is a private message so I didn’t include it here.
Thanks!
hi again,
how can use big slide in home page builder “like home page bg ” page template? i need to have option to set background and choise category or tags…
thanx
Hi,
Please replace the content of page-homepage-loop.php file with this: http://pastebin.com/GpYcZMNK like this: http://screencast.com/t/JkvXMoBsg
After adding this please add this custom css in theme panel > custom css like this: http://screencast.com/t/BOKsmfnVa
.td-older-pagination a {
background-color: #4DB2EC;
display: block;
font-family: 'Roboto',serif;
font-weight: bold;
height: 35px;
margin-bottom: 40px;
text-align: center;
color: #FFFFFF;
line-height: 33px;
}
After this please make sure you edit the page and use this template: http://screencast.com/t/oW1QiisNqQrW
Should work fine on local host also. If you can’t manage to do this by yourself we recommend to hire a freelancer from site like: http://studio.envato.com/
Thanks
Hi,
You can also add background for blocks if you use them without a row, you don’t need to place the block into a row to set a background for it, and you can use custom css to add a background.
If you still want to use the blocks in rows you can try it this way:
* add each block inside a row.
* In case of the sidebar you can build it from dashboard > appearance > widgets and for the elements you can’t add from there to the sidebar you can use a text widget and add them via short-codes. To get the short-code as you like use page builder to build the widget(tabs/blocks/…) then add the shot-code inside an text widget and into your sidebar.
* to make the short-codes work into the text widget just add this filter into functions.php file: add_filter('widget_text', 'do_shortcode');
* after you did this just use the Page Template Settings to use a sidebar and use the one you created.
Thanks
Hi,
A solution for this would be not to use article bottom ad from theme panel and instead add this line:
<?php echo do_shortcode('[td_ad_box spot_id="custom_ad_1"]'); ?>
..like this in your post template file, if you want this in all post template files you will have to edit and add this line in all loop-single files, like this: http://screencast.com/t/PZrp0waEO
Now add the ad code you used to use in the article bottom ad in the custom ad 1 box in theme panel.
Result: http://screencast.com/t/iYsaDpQe6IK
Thanks
Hi,
I have a difference among the number of fans posted on the facebook page and the one displayed with the plugin.
Newspaper template Plugin —-> 2,956 Fans
Facebook page —–> 3 035 likes
How is this possible?
Thanks
Not part of the theme; this is a wordpress and page request issue; so you likely need to Google that, as in this discussion on the WordPress site:
https://wordpress.org/support/topic/redirecting-404-errors-to-410
Probably you can clone the 404 template to be 410, but that has nothing to do with what headers are sent back to Google, etc.; that is done outside of the theme, and likely must be done via rewrite rules, or custom code to specify an error page and serve 410 response vs 404.
Might be a plugin for this, or you’d have to put in some custom code in the htaccess file to specify where to send folks asking for DOA page to 410 error message and send back 410 response vs 404 response.
-
This reply was modified 11 years by
simchris.
[ V 4.4 ]
– added new custom made infinite scrolling script with support for a ‘load more’ button after x number of pages
– fixed the load more and infinite scroll animation
– added option in panel to show the author under the title of the post
– added rel=”nofollow” to all the social profile links
– fixed mega menu selected style when one of the subcategories from the menu is selected
– added help text to all the page templates
– we renamed the bbpress template (please select it again if you are using the bbpress forum)
– the loding animation now gets the theme color insted of black as default
Hi,
You will have to add a css class to the sidebar for this which you will use to add a border between content and the sidebar like this: http://screencast.com/t/Odbfr3tX
This is the css you can use if you are using a widgetised sidebar:
.page .td-page-wrap .span4 .wpb_widgetised_column {
border-left: 2px solid #4db2ec;
padding-left: 50px;
}
For the post pages you have this class which you can use to add the border: http://screencast.com/t/Gx4TpbQsU
.td-post-sidebar {
border-left: 2px solid #4db2ec;
padding-left: 50px;
}
Use the method from the topic I have pointed you below to add classes to the sidebars used for other templates and add the border using those classes.
I have posted here how you can add a custom class to the sidebar: https://forum.tagdiv.com/topic/control-of-widget-headerslines-on-sidebar/#post-19605
Thanks
Hmm… I’ve never done this myself (create a new post template). Your blank page might have something to do with the content being loaded partly in single_template_#.php and partly in loop-single-#.php for each of these templates. Do you have all the parts you need?
P.S. If you’re going to repeat that code for each sidebar case, you can at least define a function in the same file. That is to say, have this at the top, in PHP tags:
function my_features_fields() { // No parameter because $post is still active
// Update this list using the same format for all the field names you want
$field_names = ['2g_network', '3g_network'];
// Set up tabs
$to_echo = '[vc_row][vc_column width="1/1"][vc_tabs]';
// Set up features tab
$to_echo .= '[vc_tab title="Features" tab_id="features"]';
// Begin a list
$to_echo .= '<ul class="features_list">';
// Loop through the fields
foreach ($field_names as $field_name) {
$data = get_field_object($field_name);
// Check if we have a value and set to a default if not
if ($data['value']) {
$value = $data['value'];
} else {
$value = 'No information on record.';
}
$to_echo .= '<li>' . '<span class="features_label">' . $data["label"] . ': </span>';
$to_echo .= '<span class="features_value">' . $value . '</span></li>';
}
// Close the list
$to_echo .= '</ul>';
// Close the tab
$to_echo .= '[/vc_tab]';
// Close the tab group etc.
$to_echo .= '[/vc_tabs][/vc_column][/vc_row]';
// We have to filter the whole string to make WP interpret the shortcodes
$to_echo = wpb_js_remove_wpautop($to_echo);
// Output
return $to_echo;
}
And then just have this one line wherever you want to place your tabs:
<?php echo my_features_fields(); ?>
Good luck getting the rest working! I’ll stop checking this thread shortly, but it’s been good.
Hi guys,
I don’t have cPanel in my hosting, I’m using a plugin called WP FileManager
Here’s how it interface looks like:
http://www.screencast.com/t/N8CLjVsc
http://www.screencast.com/t/PDMBW5RTWvIw
Can I upload the page template using this? I have no other of doing this :/
I wait from devs for a proper code (header and footer).
Also, noted in opera a bug, with or without a code.
http://i61.tinypic.com/mlgso4.png
In breadcrumbs if you have a subcategory, the breadcrumbs will go up as in the screen. (I have a red colored menu and DEFAULT SITE POST TEMPLATE style 5)
Thanks for coming back. I am sorry for a late reply. I was trying to implement the code in the new post type “Phones” which i created using a pluging “CPT UI”. But each time i enabled the custom post type “single-phones.php” It gives me a blank page.
Here is the template i am using for custom post type “phones”.
<?php
/* ----------------------------------------------------------------------------
the page template
*/
get_header();
switch ($loop_sidebar_position) {
case 'sidebar_left':
echo td_page_generator::wrap_start();
?>
<div class="span4 column_container" role="complementary" itemscope="itemscope" itemtype="<?php echo td_global::$http_or_https?>://schema.org/WPSideBar">
<?php get_sidebar(); ?>
</div>
<div class="span8 column_container td-no-pagination" role="main" itemscope="itemscope" itemprop="mainContentOfPage" itemtype="<?php echo td_global::$http_or_https?>://schema.org/CreativeWork">
<?php
// Update this list using the same format for all the field names you want
$field_names = ['2g_network', '3g_network'];
// Set up tabs
$to_echo = '[vc_row][vc_column width="1/1"][vc_tabs]';
// Set up features tab
$to_echo .= '[vc_tab title="Features" tab_id="features"]';
// Begin a list
$to_echo .= '<ul class="features_list">';
// Loop through the fields
foreach ($field_names as $field_name) {
$data = get_field_object($field_name);
// Check if we have a value and set to a default if not
if ($data['value']) {
$value = $data['value'];
} else {
$value = 'No information on record.';
}
$to_echo .= '<li>' . '<span class="features_label">' . $data["label"] . ': </span>';
$to_echo .= '<span class="features_value">' . $value . '</span></li>';
}
// Close the list
$to_echo .= '</ul>';
// Close the tab
$to_echo .= '[/vc_tab]';
// Close the tab group etc.
$to_echo .= '[/vc_tabs][/vc_column][/vc_row]';
// We have to filter the whole string to make WP interpret the shortcodes
$to_echo = wpb_js_remove_wpautop($to_echo);
// Output
echo $to_echo;
?>
</div>
<?php
echo td_page_generator::wrap_end();
break;
case 'no_sidebar':
echo td_page_generator::wrap_start();
?>
<div class="span12 column_container td-no-pagination" role="main" itemscope="itemscope" itemprop="mainContentOfPage" itemtype="<?php echo td_global::$http_or_https?>://schema.org/CreativeWork">
<?php
// Update this list using the same format for all the field names you want
$field_names = ['2g_network', '3g_network'];
// Set up tabs
$to_echo = '[vc_row][vc_column width="1/1"][vc_tabs]';
// Set up features tab
$to_echo .= '[vc_tab title="Features" tab_id="features"]';
// Begin a list
$to_echo .= '<ul class="features_list">';
// Loop through the fields
foreach ($field_names as $field_name) {
$data = get_field_object($field_name);
// Check if we have a value and set to a default if not
if ($data['value']) {
$value = $data['value'];
} else {
$value = 'No information on record.';
}
$to_echo .= '<li>' . '<span class="features_label">' . $data["label"] . ': </span>';
$to_echo .= '<span class="features_value">' . $value . '</span></li>';
}
// Close the list
$to_echo .= '</ul>';
// Close the tab
$to_echo .= '[/vc_tab]';
// Close the tab group etc.
$to_echo .= '[/vc_tabs][/vc_column][/vc_row]';
// We have to filter the whole string to make WP interpret the shortcodes
$to_echo = wpb_js_remove_wpautop($to_echo);
// Output
echo $to_echo;
?>
</div>
<?php
echo td_page_generator::wrap_end();
break;
default:
echo td_page_generator::wrap_start();
?>
<div class="span8 column_container td-no-pagination" role="main" itemscope="itemscope" itemprop="mainContentOfPage" itemtype="<?php echo td_global::$http_or_https?>://schema.org/CreativeWork">
<?php
// Update this list using the same format for all the field names you want
$field_names = ['2g_network', '3g_network'];
// Set up tabs
$to_echo = '[vc_row][vc_column width="1/1"][vc_tabs]';
// Set up features tab
$to_echo .= '[vc_tab title="Features" tab_id="features"]';
// Begin a list
$to_echo .= '<ul class="features_list">';
// Loop through the fields
foreach ($field_names as $field_name) {
$data = get_field_object($field_name);
// Check if we have a value and set to a default if not
if ($data['value']) {
$value = $data['value'];
} else {
$value = 'No information on record.';
}
$to_echo .= '<li>' . '<span class="features_label">' . $data["label"] . ': </span>';
$to_echo .= '<span class="features_value">' . $value . '</span></li>';
}
// Close the list
$to_echo .= '</ul>';
// Close the tab
$to_echo .= '[/vc_tab]';
// Close the tab group etc.
$to_echo .= '[/vc_tabs][/vc_column][/vc_row]';
// We have to filter the whole string to make WP interpret the shortcodes
$to_echo = wpb_js_remove_wpautop($to_echo);
// Output
echo $to_echo;
?>
</div>
<div class="span4 column_container" role="complementary" itemscope="itemscope" itemtype="<?php echo td_global::$http_or_https?>://schema.org/WPSideBar">
<?php get_sidebar(); ?>
</div>
<?php
echo td_page_generator::wrap_end();
break;
}
get_footer();
?>
I think i am making some nonsense mistake in the above template. That’s why i am getting a blank page. Tried a lot. Thanks 🙂
So, when you go to create a “page” you don’t see option to use Visual Composer once you choose a template from right side of new page creation page?
Visual Composer appears when you create a page, NOT in the theme panel. You can’t create content with the VC in the theme control panel, only on a page where you add content.
Like here
https://forum.tagdiv.com/page-templates/
Perhaps I’m missing what the problem is?
Marius, Lucian, et al will be back online Monday; I’m just trying to be helpful but I do not work here 🙂
Yeah, I ended up doing it that way since I was manually putting in a copyright notice for the author’s work (e.g., for a fiction piece, or book serial), as well as link to the author’s page to “read more by this author” …); and sometimes link back to “read chapter one” … just made it the simplest solution vs “wrangling” custom stuff.
Advanced Custom Fields is cool way to do it too, but I’m already doing too many hacks per theme update, and skipping every couple of theme updates (waiting on 4.3.1 now!), so one more thing to drop into templates was a bit much, so the manual way kind of worked since I can put the dates on the copyright more easily than trying to do query, and doesn’t add yet another data field to dbase, etc.
I think in an environment where you have multiple authors posting their own stuff, a custom field is great because you could make it “required” so that it’s always there, and remind people it needs to there, etc.
Thank you Lucian.
I realized that I could create the effect I was looking for by creating it with Page Builder blks and using the Homepage Blank template. So it all worked out in the end.
Hi,
You don’t have an option for this regarding the slider added with the “Homepage – bg” template.
Please add ,'autoplay' => '2' in page-homepage-slider.php like this: http://screencast.com/t/oF5riVtbZDdx
“2” represents the number of seconds.
Thanks
Hi Lucian,
Thank you. I didn’t realize the options for the page template slider were on the bottom.
One more question. How to I get the “Homepage – bg – no article list” big slider to auto play after 2 seconds.
In the Big Slide that I accidentally added there was an option. But I don’t see one for the page template. Am I missing something?
Hi,
I have inspected your site and noticed that you use the “Homepage – bg – no article list” template and besides this you have also added a big slider to your page.
The template that you are using already adds a big slider to the page so you wont need to add another, that’s why you get two slider on page.
You can remove the slider you have added in order to fix this or you can use another template and add it yourself.
Thanks