- NewsmagPage templates
- NewsmagCategory templates
- NewsmagFooter templates
- NewsmagDefault post templates
- NewsmagPost templates
- NewsmagHomepage – How to build and set it
- NewsmagtagDiv Composer Tutorial
- NewsmagCustom Post Type Support
- NewsmagNewsmag documentation
- NewsmagHow to use the Visual Composer plugin
- NewsmagHeader styles
- NewsmagSmart sidebar
- NewsmagCategory grid styles
- NewsmagCategory top post styles
- NewsmagHow category settings work
- NewsmagFeatured images
Hi,
Please add the value inside the panel_ads.php file – http://screencast.com/t/om4CzClEd like Emil suggested then use the do_shortcode() function to place the ad you use inside an ad box in theme panel > ads, like this: http://screencast.com/t/yk9RG2diwKyj
Here si the code you have to add:
echo do_shortcode('[td_ad_box spot_id="custom_ad_1"]');
echo td_page_generator::wrap_end();
echo td_page_generator::wrap_start();
Result: http://screencast.com/t/UdpqvFyrOl
Note that my example it’s for the default post template without sidebar, you will have to modify and add the code into which template you want to have this.
Thanks
Thanks! I did it a bit another way, added my custom class to category and page templates:)
Hi,
I have a similar issue. Getting a 404 when I use the breadcrumb link.
Example of the structure on my local site:
Made a page for the forums titled: domain/community with the bbpress template selected.
Made a forum with name titled: Test 1
Made a topic for the above forum titled : ‘First topic test’
Starting from the forums main page: domain/community, breadcrumb reads:
Home > Community
With the Forum ‘Test 1’ listed below the search bar. – All is ok. 🙂
Then selecting ‘Test 1’ forum. The forum opens and displays link to the topic ‘First topic test’, the breadcrumb now shows as:
Home > Forums > Test 1
(Note, even if you change the root slug for the forums to say ‘community’ it still displays in the breadcrumb as ‘Forums’ at this stage, but thats a separate issue I’m having).
At this point in the breadcrumb both ‘Forums’ and ‘Test 1’ are links which both go to domain/forums/forum/test-1
Selecting the topic ‘First topic test’ opens the topic. With the url as ‘domain/forums/topic/first-topic-test’
The breadcrumb now shows as:
‘Home > Forums > Test 1’
The topic has not been added to the breadcrumb.
The link on the ‘test 1’ element of the breadcrumb is:
domain/forums/topic/test-1 but produces a 404 as ‘test 1’ is a forum, not a topic.
Whilst the ‘Forums’ link of the breadcrumb is to the page I am already on ‘domain/forums/topic/first-topic-test’.
I’m not sure where it’s going wrong. Any help much appreciated.
Hi, as you likely know WordPress automatically creates archives for things like “by month” “by day” and “by year” for all your posts.
To create a custom archive, I think you need to create a new “page” then use the template options on right to select a template, then possibly use page builder to set the elements you want on that archive page. Kind of like making custom home page, but custom archive page.
To make this possible first you have to make a page and name it “Homepage”
After you do that then you have to go in WP settings,reading and on the top where it say “Front page displays” you will choose the page you made called “Homepage”
Now with all that out the way you only have to go in to pages and look for that page you made called “Homepage” and click on the edit botton and in there it will show you how to build a home page with blocks 1,2,3,4 etc…
To learn how go to this link https://forum.tagdiv.com/newspaper-documentation/
and then look for “Home Page and Templates” and it will teach you all you need to know…
How do I make an archive page like the demo? Is there an archive template to select in the sidebar when creating a new page?
you might trying adding some basic CSS to the custom CSS box,
like
.img {border:1px solid #CCCCCC;}
but then adapt that to any of the image classes being used on the templates — do “view source” on one of your pages to see the actual tag being used for images, or existing class.
Here is a class used for full size image, placed into a post
.size-full {border:1px solid #CCCCCC; !important}
something like that ?
I have not actually tried this, but seems like something along those lines should work 🙂
Likely Lucian or Marius will follow up later Sunday/Monday when they are open again with additional info, if that didn’t help point you in right direction 🙂
-
This reply was modified 11 years by
simchris.
I’ll like to say since i bought ur theme back in 2013 it had been very stable and awesome support by ur team,and the last updates just prove how loyal you are to ur clients.
Thank you for a great theme and the support as well..
[ V 4.3 ]
– fixed bug with spaces between blocks + other UI problems
– New youtube video player widget + shortcode + pagebuilder block
– New vimeo video player widget + shortcode + pagebuilder block
– tagDiv Speed Booster plugin update: jquery version bump to match the one from WordPress 4
– new grid system: the 980px grid is deprecated
– fixed an issue with the white menu sprite
– fix for header style 8, now this header support any color
– in block – Text with title – you can now add a link as title
– new tab in Theme Panel for adding custom javascript
– on Default Template the page title, content, H1-6 and quotes can now be individually set from Theme panel -> Custom Typography
– new block (Block 10), displays a list of post titles with no feature image
– add import Default Style, to be used when rolling back to Default Style after ussing a predifinied style
– updated visual composer plugin
– updated revolution slider plugin
– removed authorship support because it’s deprecated by google
Hi,
You could do this by adding the code on the template of the page you want to have this code, for example if I understood well you want this on post pages and enable this only if the post belongs to a certain category and use a plugin like Advanced Custom Fields to chose when editing the post if to show that widget or not for that post so regarding the category that post belongs you can chose if that widget to be displayed or not.
Here is how you can do it, follow this topic: https://forum.tagdiv.com/topic/function-to-hide-ads-and-function-to-show-author/#post-8993
If you don’t have basic php/html/css knowledge we recommend you hire a freelancer from sites like: http://studio.envato.com/ if you don’t know how to do it yourself.
Unfortunately we cannot offer custom work as we work hard on the development, updates, fixes and support.
Thnaks
Hi,
I tried to do essatamente as I said but it does not work.
I have the latest version of the template. This problem is giving me after upgrading to the latest versions.
How can I fix?
Look attachments
-
This reply was modified 11 years by
delfinista.
Hi,
I have tested this using the latest theme version (4.2.2) and worked fine:
– homepage-bg-with latest articles template:
* http://screencast.com/t/bzBXOKXZ
* http://screencast.com/t/wcDYwq1wS
– homepage-with articles list template:
* http://screencast.com/t/iUalUyAv
* http://screencast.com/t/mqFxQW0rVoy
Please make sure you use this right and you set the custom sidebar like I did and also that you have widgets in your custom sidebar: http://screencast.com/t/siiiAwoHWuU
Should work fine.
Thanks
Thanks a lot for providing me support that is actually not supported on this forum. 🙂
Actually What i want to achieve this i can explain you in detail.
I want to display a number of fields “labels” along with their data in a column format. Like this image.
But i want to display these all fields,labels, groups( almost 44 fields) under one tab that may be named as Features.
In the second tab i want to display Content that can be named as “Review”. In the Third tab i want to display a gallery. And in the Fourth tab there is a purchase guide named as “buy now”.
Previously i tried a lot to get these working. But failed. And one more thing, i want to create a custom post type “Phones” with a taxonomy “Brands” for it. So, that each time, i don’t have to choose a template for executing these functions. Further whenever there is no content in a field it will not display, If there is no content in a field label, the field label will not show.
Can you please also tell me if i can create a comparison page using these fields. Like if i want to compare iPhone 5 features with iPhone 6. Is it possible with ACF?
Thanks again the most awesome and brilliant guy on TagDiv.
-
This reply was modified 11 years by
tenocation.
Well that’s what you can use the custom page template for, to add classes. Then again, depending on what you’re trying to do overall, VC can handle what you need.
Just create your page using the default page template with the articles list and add the styles for that page to the page via the VC page settings (grey cog at the top right of the editor screen). You can also edit rows and columns and enter custom CSS there as well.
I know but if I change the CSS for one class, it is going to change everything on all the other part of the theme but I want to use custom class and make it look a bit different.
If you’re just wanting to change how things look, and not move things around, then you should using custom CSS. Use FireFox or Chrome to open the existing page, right click on the part you want to modify and select “Inspect Element” from the context menu. You can see the style classes and IDs used to target your CSS changes.
Well keep in mind that getting a new page template is the easy part. In order to make use of the loop feature after the page content and other features from Newspaper, you’ll have to study the functions and tags used by tagDiv and use them in your custom template. It’s not always easy to connect the dots on some of the functions so just remember to ask questions about specific issues here on the forum so they can help you.
No worries, and good luck!
Hey, I couldn’t understand how to edit how it looks like? I want to change how the title and other stuff look like. Please help.
Thanks @Kronos17! I thought they had a custom function for this template settings cause it looked a bit different than the original WP settings. Should’ve tried it before asking. Sorry and thanks again!
That should be the file page-homepage-loop.php in the root directory of the Newspaper theme. Copy the contents to a new file named page-homepage-custom.php and edit the following line at the top of the file.
/* Template Name: Homepage - with article list */
To read like:
/* Template Name: Homepage - Custom with articles */
Then upload that changed file to the theme directory root where you found its source. The new page template should now be showing in the templates drop-down menu on the editor screen. Make your desired changes to that file.
Let me know if I missed anything, guys.
Hi
I want to create a custom page template and copy everything from the “Homepage – with Article list”. I would like to style it a differently and don’t want to conflict with the existing template.
Please help.
Thanks
Yes, just checked your file and the problem is in the context — you forgot to wrap the new code in a <?php> tag. Hence it’s being treated as HTML. Your whole file should look like this:
<?php
/**
* The single post loop for post template 1
**/
if (have_posts()) {
the_post();
$td_mod_single = new td_module_1($post);
//show the breadcrumb
if (get_post_type($post) == 'post') {
echo td_page_generator::get_single_breadcrumbs($td_mod_single->title);
} else {
echo td_page_generator::get_page_breadcrumbs($td_mod_single->title);
}
?>
<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();?>>
<header>
<?php echo $td_mod_single->get_title();?>
<div class="meta-info">
<?php echo $td_mod_single->get_category();?>
<?php //echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
<?php echo $td_mod_single->get_commentsAndViews();?>
</div>
</header>
<?php if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) { ?>
<p class="td-sub-title"><?php echo $td_mod_single->td_post_theme_settings['td_subtitle'];?></p>
<?php } ?>
<?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('art-big-1col');
}
?>
<div class="td-post-text-content">
<?php echo $td_mod_single->get_content();?>
<?php
// Set up your row, column, and tabs element
$to_echo = '[vc_row][vc_column width="1/1"][vc_tabs]';
// Simplest possible example of getting ACF data, sub in yours
$data_1 = get_field('2g_network');
$data_2 = get_field('3g_network');
// Repeat these lines for each tab, making sure each tab has a unique id
$to_echo .= '[vc_tab title="The first tab" tab_id="tab_1"]';
$to_echo .= $data_1;
$to_echo .= '[/vc_tab]';
$to_echo .= '[vc_tab title="The second tab" tab_id="tab_2"]';
$to_echo .= $data_2;
$to_echo .= '[/vc_tab]';
// (You could wrap each block in an if to skip a tab if the data is empty)
// When you have all your tabs, close the elements
$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);
// Do whatever
echo $to_echo;
?>
</div>
<div class="clearfix"></div>
<footer>
<?php echo $td_mod_single->get_post_pagination();?>
<?php echo $td_mod_single->get_review();?>
<?php echo $td_mod_single->get_source_and_via();?>
<?php echo $td_mod_single->get_social_sharing();?>
<?php echo $td_mod_single->get_social_like_tweet();?>
<?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();?>
<?php
} else {
//no posts
echo td_page_generator::no_posts();
}?>
Hi,
You can change it from theme panel > template settings: http://screencast.com/t/bZDccHwc
Regarding the title, you can try to look at how WordPress SEO works. You can edit the title by clicking SEO > Titles & Metas > Post Types. Scroll down and look for “block” Custom Post Type Archives. On the “Products”, you can edit the behavior of this title.
Please let me know if you manage to do this.
Thanks
Hi,
I’m not sure that I understand what are you trying to do. For post pages and other templates you can chose the sidebar from here: http://screencast.com/t/Ib0vSuhToo
For other pages you can chose the sidebar directly freom page editor: http://screencast.com/t/Eykf2td2E or add an widgetised sidebar element and set it like this: http://screencast.com/t/hI8KFdYVeiG1
Hope this helps!
Thanks
Hi,
You can enable the post author which will appear on post page like this: http://screencast.com/t/HcWX4iOS9gua and links to the author page.
For this you will have to make sure you remove the comment from the loop-single.php and loop-single-1.php files for the default and first post styles. Edit each file and remove the two slashes “//” like this: http://screencast.com/t/VLf3DkCMw
For the other post style 2/3/4/5 you will have to edit the single_template_2/3/4/5.php files and remove the slashes “//”, like this: http://screencast.com/t/T8R4KFZhhnZl
Hope this helps!
Thanks
Hi,
I’m not sure if I understood right what you want, I believe you want that the post author to appear after the date of the post and not at the bottom of the posts where the author box it’s positioned. If this is way you want it please make sure you remove the comment from the loop-single.php and loop-single-1.php files. Edit each file and remove the two slashes “//” like this: http://screencast.com/t/VLf3DkCMw
For the other post style 2/3/4/5 you will have to edit the single_template_2/3/4/5.php files and remove the slashes “//”, like this: http://screencast.com/t/T8R4KFZhhnZl
If you want the author to appear after the date switch the line between them, like this: http://screencast.com/t/VJeSEWnwM4
Then go to td_module.php file and do this: http://screencast.com/t/kIj3H0yWMW like this: http://screencast.com/t/ZzzuRQLpfGG
After this add this custom css in theme panel > custom css field:
.single header .meta-info time {
font-style: normal !important;
margin-right: 0px !important;
}
You should get this result: http://screencast.com/t/58xJxjP1pDUW
You can disable the “author box” on post pages from theme panel > post settings: http://screencast.com/t/GM3BPolH
Hope this helps!
Thanks