- NewspaperHeader Builder
- NewspaperHeader ads
- NewspaperHeader styles
- NewspaperSearch setup for custom post type
- NewspapertagDiv Composer – Website Manager
- NewspaperBookmark – Save For Later
- NewspaperWooCommerce: Happy “Add to Favorites!”
- NewspaperModal Popup
- NewspaperFlex Block Settings Guide
- NewspaperPosts Loop Element
- NewspaperHow to Add a Logo in Newspaper
- NewspaperDefault Category Settings
- NewspaperWhen tagDiv Composer is Not Working
- NewspapertagDiv Cloud Library Plugin
- NewspapertagDiv Composer Tutorial
- NewspaperUsing the Theme Translations with WPML
- NewspaperInstagram in Newspaper WordPress Theme
- NewspaperWeather Shortcode
- NewspaperThe Mobile Theme
- NewspaperLogin – How to Enable User Registration
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
I agree that the order is a little bizarre. I rearranged my templates too. 🙂
You’ve got the right idea but templates 2 through 5 have a different breaking of where the header appears — namely in single_template_2.php, _3.php, etc.
Take these lines from loop-single-2.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
}
Find these lines in single_template_2.php:
<div class="meta-info">
<?php echo $td_mod_single->get_category();?>
And add this after the category line:
if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) {
echo '<p class="td-sub-title">' . $td_mod_single->td_post_theme_settings['td_subtitle'] . '</p>';
}
Same as what was removed from loop-single-2.php but slightly modified to match single_template_2.php’s style in case it matters.
Haven’t tested (I have some other subtitle stuff going on in my implementation), so check back if something doesn’t work.
Hi,
Thanks Steven!
@rockcityrecord Try like Steven wrote to do it using WordPress SEO plugin, also please let me know at which specific meta info do you refer.
@nicoms91 You can remove this line from header.php file: http://screencast.com/t/kUQWROOFm
Thanks
Hi,
Please use this css:
@media (max-width: 767px) {
.td-header-menu-wrap {
display: inline-block;
}
.mobile-logo-wrap img {
width: 140px;
top: 0px;
height: 100%;
}
.td-rec-hide-on-p {
display: block;
}
}
Also added the .mobile-logo-wrap img for the logo which I have noticed it’a a bit off line on mobile screens.
Should work like this: http://screencast.com/t/Et9lZRjsY
Thanks
-
This reply was modified 11 years by
Lucian.
Hi,
Should not affect anything else but the banner container, you could also use this css to target the banner, if you use an google adsense ad:
.td-g-rec-id-header {
margin-bottom: 20px;
}
Thanks
Hi Lucian,
I will wait for next update, not a big problem for us now.
Thanks for your help!
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();
}?>
Yes, the issue is there. I added this css as for some reason div class/id added to ad code in Header Ad box don’t work. Also the css given by you didn’t work.
So I ended up changing this:
.header-content-rec {
height: 122px;
}
It did work, but I am not sure if that’s a good idea or if its breaking something else shomewhere.
Tahnks Lucian,
Tried but as you can see the ad is getting trimmed/cropped. The same issue that happens when ad goes in header area next to logo. How can I fix this as cropping Ads is not a good idea. Check the screenshot below:
https://drive.google.com/open?id=0B-ALfi5glBeCSzhnMUIzYmNZY0U&authuser=0
Hi,
Please use this custom css:
@media (min-width: 420px ) and (max-width: 767px){
.header-style-3 .td-full-logo .td-logo img {
top: 1px;
width: 300px;
height: 48px;
}
}
@media (max-width: 420px) {
.header-search-wrap #search-button .td-sp-ico-search {
position: relative;
left: 0px !important;
}
.header-style-3 .td-full-logo .td-logo img {
top: 1px;
width: 200px;
height: 48px;
}
}
Should fix this like this: http://screencast.com/t/9cPrnFAQRU
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
Hi,
That is another issue that we are aware about, please send an e-mail at contact@tagdiv.com and we will send you a fix for it or you could wait until the end of next week when we will release an updated in which we will fix this.
Thanks
Hi,
Glad you figured it out!
Regarding the sidebar, I have noticed that you are using the default page template: http://screencast.com/t/spbVpGtN
In that case you will have to add you custom class in page.php template, like this: http://screencast.com/t/m4NUcTZNv
You will not find a different class on sidebars on templates, that is the point, you will have to add it yourself so you can target the sidebar you use on that template and customize it like you want using custom css:
Result in my example: http://screencast.com/t/Y8d2bUtFwaz
Thanks
Hi,
Right now I can see that the blog page it’s set as your homepage, you can change this from WordPress Dashboard > Settings > Reading and chose a page you designed as your homepage: http://screencast.com/t/vdcOwLKH6s
You can create the same layout and design for your homepage like this:
1. First add a new page, add a name for it(which you will set in the Reading settings as a homepage), after this set the template, then switch to “Classic mode” like this: http://screencast.com/t/rBoKKS5a0F
2. Secondly change the to “text” view and add the code from below, like this: http://screencast.com/t/TnCeQsNyXfn
The code for the homepage:
[vc_row el_position="first last"][vc_column][td_slide_big limit="8" tag_slug="taggggggg"][/vc_column][/vc_row][vc_row][vc_column width="2/3"][td_block2 limit="6" custom_title="DON'T MISS" ajax_pagination="next_prev" show_child_cat="all" category_id="19"][td_block1 limit="5" header_color="#f65261" custom_title="TECH AND GADGETS" ajax_pagination="next_prev"][td_ad_box spot_id="custom_ad_1"][td_block2 limit="6" custom_title="TRAVEL GUIDES" ajax_pagination="next_prev" header_color="#82b440" sub_cat_ajax="n"][/vc_column][vc_column width="1/3"][vc_widget_sidebar sidebar_id="td-demo-1"][/vc_column][/vc_row][vc_row][vc_column width="2/3"][td_block2 limit="6" custom_title="FASHION AND TRENDS" ajax_pagination="next_prev" header_color="#ff3e9f"][/vc_column][vc_column width="1/3"][td_block4 limit="1" custom_title="EDITOR PICKS" ajax_pagination="next_prev" header_color="#2b2b2b"][td_ad_box spot_id="sidebar"][vc_wp_tagcloud taxonomy="category"][/vc_column][/vc_row][vc_row][vc_column width="1/1"][td_ad_box spot_id="custom_ad_1"][/vc_column][/vc_row]
3. After this switch back to “Backend Editor” and customize the blocks with your content by editing them from here: http://screencast.com/t/0TjfKvN8U18 Do the same for sliders, sidebars, widgets, you can do it as you like.
4. Finally go to WordPress Dashboard > Settings > Reading and set the “Front page displays” as a static page and select your newly created homepage instead of the blog page.
Please make sure you follow our documentation, we have added there guides on how to use the theme right.
Hope this helps!
Thanks
Hi TheMediumUTM;
Thank you again.
Now it looks good and I like it. As you can see there is little problem that is margin from the left and the space between the header and block slide.
When I checked how the site apears on mobile the margin left problem seem clear.
This is what i did. I put all the css codes together, changed px values, copied all of them and pasted in theme panels costom css area.
.span1, .span3, .span4, .span6, .span8, .span9, .span11, .span12 { margin-left: 20px !important; }
.block-title { margin-bottom: 10px; padding-bottom: 10px; }
.td_mod_wrap .meta-info {display: none !important;}
.td_block_wrap { margin-bottom: 0px; padding-bottom: 10px; }
.td_mod_wrap { margin-bottom: 10px; }
.td_mod1, .td_mod2, .td_mod3, .td_mod4, .td_mod5, .td_mod6, .td_mod7, .td_mod8, .td_mod9 { margin-bottom:
10px!important; }
.td_mod_wrap .thumb-wrap { margin-bottom: 10px; }
.wpb_row { margin-bottom: 10px; }
.td_mod3 { min-height: 65px; }
Regards
Ecofame
th = table header
tr = table row
td = table cell
You may want to do a search online for how CSS3 tables work.
Example:
table, th, td {
border: 1px solid black;
}
Not sure, but the theme might support Bootstrap 3 common table styles like so:
class="table table-bordered"
ref: http://getbootstrap.com/css/#tables
Hope that helped 🙂
-
This reply was modified 11 years by
simchris.
It’s a little bit of custom work, so if you aren’t comfortable coding you’ll have to find someone. I did this recently and my own steps were:
1. Replaced searchform.php with my own (so widgets would be replaced with mine too; not necessary, you could just use the theme default)
2. Edited the div for the search out of the menu in menu-header.php and menu-header-center.php (one or the other, I forget which), and instead had a div that uses the WP function get_search_form()
3. Styled my new div using CSS to sit at the right of the menu, use my own icon, etc.
Hi Lucian,
actually on my phone (S4/Android), main page is showing like this:
http://www.screencast.com/t/XioAI6hgpa
When i click on home menu i get Search
and there’s no global menu showing.
Thanks for your help
It seems i found the solution for issue with header.
I added this code, is i tthe right way?
.header-logo-wrap {
margin-bottom: 90px;
margin-top: 10px;
}
And one more issue with header.
I added background image, the height 200px using this
.td-boxed-layout .td-logo-rec-wrap {
background-image: url(http://balkonsami.ru/wp-content/uploads/2014/09/dreamstime_37396329-2.jpg);
}
Then i’m trying to add a logo, but if my logo is 300x100px as you recomend, the big lower part of my background is invisible. When i increased the height of my logo till 165px the background started to look better. So are they related to each other? Or i do something wrong?
hi,
Please follow this topic, I have about how you can do this: https://forum.tagdiv.com/topic/background-of-menu-header-sidebar-and-ect/#post-20422
On post pages you can use this css:
.td-post-sidebar {
background-color: red;
}
Thanks
Sorry, not sure if i got it..
I’ve made a new page using admin panel (just added a new page from it). It’s not the main page, just one of some others, in particular it’s a sitemap page.
I don’t find there any class like for sidebar on post page
sidebar code here is
<div class=”span4 column_container” itemtype=”http://schema.org/WPSideBar” itemscope=”itemscope” role=”complementary”>
<aside class=”widget widget_categories”>
<div class=”block-title”>
<span>Рубрики</span>
</div>
-
</aside>
Hi,
For the post sidebars it’s the single.php file: http://screencast.com/t/KJuc4Rk3
For the other post templates you will have to modify the single_temnplate_1.php/single_temnplate_2.php/single_temnplate_3.php ... files also.
For the other issue I have replied you here: https://forum.tagdiv.com/topic/background-of-menu-header-sidebar-and-ect/#post-20422
Thanks
Hi,
If it’s not an widgetised sidebar which you can add via pagebuilder then you will probably need one. In that case you will have to edit and add it to the page template you are using to create the page: http://screencast.com/t/MMjMqfGVI6Qa – > http://screencast.com/t/9eRyminqOz3e
Thanks
Btw, what is about sidebar on the pages? Does it need a special class too? And in which file should i add it?