- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- ApiAPI – Single Template – Introduction
- ApiPractical example – How to add a new Block and Module
- ApiAPI – Category top section style – Introduction
- Apitd_api_module::update
- Apitd_api_module::add
- ApiAPI – Modules – Introduction
- Apitd_api_block::update
- Apitd_api_block::add
- ApiAPI – Blocks – Introduction
- ApiUsing the Theme API in plugins
Hi folks:
requesting option to have the “time” shown in addition to date of publication next to author byline on the post pages.
Sadly ran into issue where the previous “fix” I have also suggested for adding time stamp to the time on the WP admin settings page, unfortunately “prints” that time stamp on the “by day” archives templates and couple other “date” based things where it should not.
Ideally the post “when published” option, common on news sites, SHOULD BE a combination of pulling BOTH the “date” setting + the “time” setting.
Presumably I can manually add this to the post template each update, but just ran into issue with some things where the “accepted” fix the past year on this topic is essentially NOT the best way to address this.
so, ideally we’d need something like
<?php echo $td_mod_single->get_date(false);?> <?php echo $td_mod_single->get_time(false);?>
I have previously used the regular Big Slide post in which I could exclude posts with just putting in the category name with a “-” in front of the ones I didn´t want showing.
I am now using the template instead (the one named Homepage-bg-noarticle) which looks a lot better since I want the background-picture option. However I can´t seem to find any settings at all for that Big Slide other then Slide Limit, Slide Background and Background Color.
How do I decide which categories I want to show and not show?
Page is: http://www.enkelteknik.se
Sorry, there is no 404 error page it just brings me to a blank template page that says the Category name above and thats it. Above that it says: Home > Fruit (fruit is a parent category of sub-categories)
That’s it. How can I exclude all no-featured-image posts from listings? I need to do this in the more optimized way, on Newsmag template running WordPress 4.2.1.
The thing is, where do I have to add this specific part to the WP Query?
$args = array(
'post_type' => 'post',
'posts_per_page' => 6,
'meta_query' => array(
array(
'key' => '_thumbnail_id',
'compare' => 'EXISTS'
),
)
);
Thanks, really appreciating your great template.
Hi folks
wondering best way to change the header on the “category” indexes, which are more important to us than the tag pages.
So, for example of a category on our California site, like “Los Angeles News” — need to get that into a proper H1 style large “title” ala the “tag” template, and have that above the category description blog instead of the bootstrap style “label” …
I suppose I could copy the code from the tag template?
Hi,
See here for example: http://shughal.staging.wpengine.com/testpage/
Just installed NewsMag, and I seem to be having issues with the sidebar getting bumped down. I thought it was the layout I was using, but I created the above test page and used one of the sample templates from the theme, and it’s still causing issues. I have tried both the default page and the latest articles + pagination.
Thoughts here on fixes?
Hello,
I’m in the process of setting the fonts that I want for my site. But when I try to choose the font for Pages it does not change. It says (only on default template) I’m using the Classic template. Is there something I’m missing here?
Thanks for your help.
News Mag is a great theme I am really enjoying using it. The support you guys have given me is great. My question I’m planning on doing a commercial for my facebook page and I love what you did with you Video Tutorial on Youtube! https://www.youtube.com/watch?v=TUdVeZ1pbuc I have looked on VideoHive but have not found anything that looks as good. Can you point me in the right direction?
Thanks
Chad
Hi,
If you need this just for your blog page then you can remove it from the template like this: http://screencast.com/t/ikTMY9k3
Thanks
Hi,
For you homepage you have to edit the template that you use “Homepage-BG with articles list” or “Homepage with articles list”: http://screencast.com/t/O3URcn7p So if you say that it doesn’t work it means that you use “Homepage-BG with articles list” page template.
For category page please use the code like this after pagination – http://screencast.com/t/ytKnDWbedfgL and it should solve the issue (above I provided wrong position for category page – sorry ).
Thanks!
How do I get the sections in the homepage template to use only specific categories and their children?
I used the ‘Reveal Ids’ to get the category id’s for both my ‘releases’ category and my ‘previews’ category and based on looking through all the templates’ code it looks like using the category_id attribute might be what I want. However after trying it, both sections display my current one post which is in the previews category (not a subset of releases). How I can I get each section to display only the appropriate articles?
Code:
[td_block1 limit=”6″ category_id=”13″ header_color=”#f65261″ custom_title=”RELEASES” ajax_pagination=”next_prev”][td_ad_box spot_id=”custom_ad_1″][td_block2 limit=”6″ category_id=”11″ custom_title=”PREVIEWS” ajax_pagination=”next_prev” header_color=”#82b440″]
I’ve also tried show_child_cat with no luck as well. Is there something like an MSDN page that lists all possible attributes and a description of each? Also what is the difference between td_block1 and td_block2?
Hey, so checking the Google Structured data tool for my front page I found out the there is an error for one of the template entries, and you can see that in the link.
Besides that, I’d like to hide the breadcrumbs for the front page. It says Blog there as the base url, and I really don’t understand why, since it’s the front page and it doesn’t really need any breadcrumbs.
Having said that, Google shows something wrong in it’s analysis, because in the Breadcrumbs data for the front page I dont have the base url, I have a sticky article set as the url for the blog, and that is not right.
How can this be fixed?
Hi,
Yes, you can use do_shortcode function and add a custom ad bellow pagination in template that you want:
Homepage with articles list – http://screencast.com/t/d9HPJK5j0 – http://screencast.com/t/vnljqeHfD
Category page – http://screencast.com/t/Sx5IWqWbdy – http://screencast.com/t/IWlGaGdH
Tag page – http://screencast.com/t/oyUmCoCcDmw
echo do_shortcode('[td_ad_box spot_id="custom_ad_1"]');
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
td-post-sidebar class is used on posts so if your post’s sidebar is hidden on mobile then adding this class in your page template will also hide the latest articles sidebar. So feel free to use it like that, it is a good solution.
I also checked you site again and I see that you have added this class in page template homepagesidebar, this also can be used if you want this. Just paste this custom css in Theme Panel > Custom css:
@media (max-width: 767px) {
.homepagesidebar {
display: none !important;
}
}
Thanks!
Hi,
Yes if you have a custom sidebar for each category page this will be also displayed on articles from that category. This will overwrite your settings from “Blog and Post template” like choosing a custom sidebar from backed for each post(this will overwrite setting from Theme Panel ) – http://screencast.com/t/Htmr6cSr
Hope this helps!
Hi,
If you want to display ticker on all of your pages(page, category, post…) you can add the ticker bellow the main menu. You need to create a file in parts folder like – http://screencast.com/t/fYkP3Rq1
and add your shortcode – http://pastebin.com/WLUSLqtj
Then call that template in header.php: http://screencast.com/t/7GVwtPJWePC
locate_template('parts/header-style-1-ticker.php', true);
You may need some css customization, but you can add an extra class to the ticker container and use it to customize.
If you want your ticker only for page templates you have to edit those files depending which page template do you use – http://screencast.com/t/1gt1C89hd
Thanks!
Hi tagDiv team,
I can’t seem to figure out why my frontpage has white space between visual composer elements/blocks as shown in the screenshots.
This seems to just happen on my main page of the website. problem does not occur in other pages on the site.
I’ve tried to recreate a new frontpage with new frontpage template.. but problem persists.
http://www.goproace.com/wp-content/uploads/2015/04/gap_gproa_1.png
http://www.goproace.com/wp-content/uploads/2015/04/gap_gproa_2.png
Thanks in advance!
Disqus works with comment counts on posts, but not on author page.
Disqus “writes” counts to WP datafield used by WP native comments; which is then read by theme.
HOWEVER – Disqus plugin has not been updated for WP 4.2x or the recent security changes to WP due to the major “comments” XSS vulnerability, so there may be some current “break” between what Disqus is doing and the WP backend — it’s NOT managed by theme in any way.
I usually just comment out the comment item on the author template, but works everywhere else.
I would guess there should be Disqus plugin update soon. Or, you can try one of the new alternate plugins which use Disqus API but add lazy loading and other cool things.
Thank you!
It works, but partly. As i found out the thing is i use ads which have to have kind of unic id so one ad can’t be shown on the same page more then 1 time. So i had to add 3 scripts in the custom ad fields in theme panel and i’m run out of free fields now:)
Is there any way i can add more than 3 custom ads?
About ads in category between description and posts i still can’t figure out how to do it with do_shortcode() function… Could you please provide a bit more information?
For now i just added my ad script in file category.php after this
default:
echo td_page_generator::wrap_start();
?>
<div class=”span8 column_container”>
<?php
//load the author box located in – parts/page-category-slider.php – can be overwritten by the child theme
locate_template(‘parts/page-category-slider.php’, true);
?>
It shows up in the place i need, but i’m not sure if it’s right to do it this way..
Thank you in advance!
Hi,
Thats not only post template http://www.screencast.com/t/xQUvJOVpMa i want to make everypage. I try here http://www.screencast.com/t/mOYZeRTJ
Thanks…
-
This reply was modified 11 years by
eballi.
Hi,
The height of featured image in post style 4 can be increased via custom css in Theme Panel > Custom Css here is an example for desktop screen:
@media (min-width: 1019px){
.single_template_4 .backstretch {
height: 800px !important;
}
.single_template_4 .td-big-slide-background {
height: 800px !important;
}
.single_template_4 #td-full-screen-header-image{
height: 800px !important;
}
.single_template_4 .td-template4-header {
top: -270px !important;
}
}
Also you can remove main menu border using this custom css: http://screencast.com/t/32Scya2f58
.td-full-layout .td-menu-background {
border-bottom: none;
}
.td-full-layout .td-menu-background:after {
display: none;
}
Unfortunately we don’t have any videos, but you can use Slider in your page at full width row(3 columns): http://screencast.com/t/ucrXI0Gflsot like you can see on our demo – http://demo.tagdiv.com/newspaper/ios-slider/
Thanks!
Hi,
If you want to display for your homepage only latest articles and have “classic pagination” you can use ” page template with articles – http://screencast.com/t/MpTTzXizx6A and set the module 11 to display it(this module is used for block 12) – http://screencast.com/t/aMcUhJxoTt so you will have pagination – http://screencast.com/t/h5cnF03BPK
Also you can set number of posts to display(and more settings) – http://screencast.com/t/YgVnOyZQ2
Thanks!
Hello,
I’m trying to replicate category style top posts grid in main blog page. I have found that this piece of code is responsible. So I copied it inside the container to index page and it shows perfectly.
Except for one feature, it duplicates posts in the blog page. I wonder if anyone know how can I manually disable duplicate posts in index.php in addition to this code.
<?php td_api_category_template::_helper_show_category_template() ?>
<?php td_api_category_top_posts_style::_helper_show_category_top_posts_style() ?>
Extra information:
Wordpress 4.21
Newsmag 1.7.1 (Thank you for the update)
We don’t use Visual Composer, tagdiv speed booster or any other plugin bundled with theme.
Why? Because I have tried every version but our CPU use still goes crazy and site is non responsive with these plugins enabled. I have waited for a month for updates, got them, nothing changed. I tried nearly every plugin combination, including disabling every other plugin and only enabling these plugins. It’s impossible, page load time goes to 45 seconds to no response. In my previous post I explained that this happens with hundreds of concurrent online users, so normal blogs need not be alarmed. Also it just doesn’t load normally in page edit screen (Checked for that option it’s correctly set) it gets loaded then dissapears out of page. Tried with different browsers too. But solving is not important anymore with high admin ajax use on server it’s done for me.
I like the themes quality coding, speed, style and options. But with in this situation I have to make this simple change because I can’t use VC for this. I would very much love to see some more styling options included for blog and posts section of theme options, instead of relying on VC.
So if you can point me in right direction I want to make this change works.
Best Regards,
Hello,
I would like to have Login/Register option enabled in the theme template but when user click on it i would like to show UserPro in pop-up or as a Login page.
I suppose that i could include some php code or shortcode, but i can’t fid where.
Where and how should i insert shortcode/php code to call UserPro Login/Register ?
Thanks in advance, Marcin.
Hi,
Do you refer to the latest articles sidebar?
For this you need to add an class in the page template: http://screencast.com/t/KqgkJcM1XR
And use the above css to hide it.
Thanks!!