- NewspaperCreate Custom Code with the browser’s Inspector or the Live CSS Box
- NewspaperScroll Animation
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- NewspaperHow to setup Twitch for Social Counter
- NewspaperModal Popup
- NewspaperFlex Block Settings Guide
- NewspaperAutoptimize Plugin – install and configuration
- NewspaperAdding Multiple Authors to Your Articles
- NewspaperDesign your Post Pages using the Cloud Library Templates
- NewspaperBig Grid Flex Settings
- NewspapertagDiv Composer Tutorial
- NewspaperTheme modules and blocks
- NewspaperThe Mobile Theme
- NewspaperCompare theme files – Winmerge tutorial
- NewspaperUsing Other Ads
- NewspaperBlock settings tutorial
- Using custom fonts
- Using typekit fonts
- NewspaperChild Theme Support
- NewspaperHow to Make the Site Faster
and what is that live css editor which you using could you recommend me ?
Hi,
Go to theme panel > theme colors and set your color as main theme bg color and as header color like this: http://screencast.com/t/y3JVMdKTc
After this use this custom css to remove the color from the header like this: http://screencast.com/t/9Z7GncXA
Thanks
i went to appearances >> editor >> added the two lines of code you gave me and saved it
Then went back to my posts but nothing changed not the margin and not even the comments were on.
Then i went to the post in particular and added the css code from the top bar and it all messed up.
Then out of the two codes you gave , i just added on css code , the margin went away but the comment section still wasn’t working.
What can be done Lucian?
Where do i add this css code , consider me a non techie !
Hi,
For the category tags from the slider you need additional customizations to get it like that as the theme doesn’t have an option for that. You can take a look at how the post category tags are build for posts here: http://screencast.com/t/ZxRWMxUu and do the same for the category function from the slider: http://screencast.com/t/MC8tbmfdY0
I suggest you to get someone to help you with this if you need it and don’t know to do it as you need custom work for this which we cannot provide at this time as we work on updates/development and support.
To make the slider title solid use this css: http://screencast.com/t/whjAVlJJA
.td-sbig-title-wrap .td-sbig-title, .td-slide-item-sec .td-sbig-title-wrap, .td-big-grid-title .td-sbig-title-wrap {
background-color: rgb(6, 99, 90);
}
Thanks
Hi,
This happens because you use page builder to build your posts which we don’t recommend as it could cause issues of this type.
Use this custom css to fix this: http://screencast.com/t/p68O9bbjUC and also use this to remove this left border which appears on posts: http://screencast.com/t/vjYZZLXGpU7R as it is also happens because of using page builder on posts: http://screencast.com/t/3uO7KC1XDPtV
.td-post-content .td-pb-span12 {
margin-bottom: 0px;
padding-bottom: 0px;
}
.td-post-content .td-pb-span12 {
border-left: 0px solid #e6e6e6;
}
Please let me know if you still have issue after this.
Thanks
Hi guys,
I really wanted to show ‘related articles’ and ‘more from author’ on post page separately. I managed to do this with a little help of the support team. I’m sharing this, because I think it is a nice extra feature.
In the theme option panel you can enable/disable the ‘related article’ module which contains both ‘related articles’ and ‘more from author’. In my case I didn’t want to display ‘more from author’ on posts written by user ‘redactie’, because he is the redactor and 90% of my sites post are written by him. I just wanted to show ‘related articles’ on posts written by user ‘redactie’:

Because my website has a category called ‘expert blogs’ which contains posts that are written by doctors, I wanted to only display ‘more from author’ on posts (expert blogs) written by doctors:

All posts written by other users than ‘redactie’ and all posts with other categories than ‘expert blogs’ should still have displayed both ‘related articles’ and ‘more from author’:

Step 1:
Create backup of theme.
Step 2:
Open Newsmag/includes/shortcodes/td_related_posts.php and go to line 30:
$buffy .= '<h4 class="td-related-title">';
$buffy .= '<a>block_uid . '" href="#">' . __td('RELATED ARTICLES') . '</a>';
$buffy .= '<a>block_uid . '" href="#">' . __td('MORE FROM AUTHOR') . '</a>';
$buffy .= '</h4>';
Step 3:
Add $post_cat = get_the_category(); to store the category of the post which contains the ‘related article’ module. The code will be:
$post_cat = get_the_category();
$buffy .= '<h4 class="td-related-title">';
$buffy .= '<a>block_uid . '" href="#">' . __td('RELATED ARTICLES') . '</a>';
$buffy .= '<a>block_uid . '" href="#">' . __td('MORE FROM AUTHOR') . '</a>';
$buffy .= '</h4>';
Step 4:
Place
Related articles:
$buffy .= '<a>block_uid . '" href="#">' . __td('RELATED ARTICLES') . '</a>';
AND
More from author:
$buffy .= '<a>block_uid . '" href="#">' . __td('MORE FROM AUTHOR') . '</a>';
into conditions. In my case:
If author of post is ‘redactie’, only display ‘related articles’:
if (strtolower(get_the_author_meta('display_name', $this->post->post_author)) == 'redactie') {
$buffy .= '<a>block_uid . '" href="#">' . __td('RELATED ARTICLES') . '</a>';
}
If category of post is ‘expert blogs’, only display ‘more from author’:
elseif (strtolower($post_cat[0]->cat_name) == 'expert blogs') {
$buffy .= '<a>block_uid . '" href="#">' . __td('MORE FROM AUTHOR') . '</a>';
}
In all other cases, display as normal both ‘related articles’ and ‘more from author’:
else {
$buffy .= '<a>block_uid . '" href="#">' . __td('RELATED ARTICLES') . '</a>';
$buffy .= '<a>block_uid . '" href="#">' . __td('MORE FROM AUTHOR') . '</a>';
}
Step 5:
Save and close file.
Step 6:
Open Newsmag/includes/modules/td_module_single.php and go to line 731:
$td_block_args = array (
'limit' => $td_related_limit,
'ajax_pagination' => 'next_prev',
'live_filter' => $td_related_ajax_filter_type, //live atts - this is the default setting for this block
'td_ajax_filter_type' => 'td_custom_related', //this filter type can overwrite the live filter @see
'class' => $td_related_class
);
Step 7:
Add $post_cat = get_the_category(); to store the category of the post which contains the ‘related article’ module. The code will be:
$post_cat = get_the_category();
$td_block_args = array (
'limit' => $td_related_limit,
'ajax_pagination' => 'next_prev',
'live_filter' => $td_related_ajax_filter_type, //live atts - this is the default setting for this block
'td_ajax_filter_type' => 'td_custom_related', //this filter type can overwrite the live filter @see
'class' => $td_related_class
);
Step 8:
Add condition to display ‘expert blogs’ posts by default when only ‘more from author’ is displayed. If you don’t add this condition, ‘related articles’ posts will be displayed by default and you will have to press ‘MORE FROM AUTHOR’ switch manually to load the relevant posts:
if ((strtolower($post_cat[0]->cat_name)) == 'expert blogs') {
$td_related_ajax_filter_type = 'cur_post_same_author';
}
So in case the posts have ‘expert blogs’ as their category, variable $td_related_ajax_filter_type will be ‘cur_post_same_author’ and the live filter will display ‘more from author’ posts.
Complete code will be:
$post_cat = get_the_category();
if ((strtolower($post_cat[0]->cat_name)) == 'expert blogs') {
$td_related_ajax_filter_type = 'cur_post_same_author';
}
$td_block_args = array (
'limit' => $td_related_limit,
'ajax_pagination' => 'next_prev',
'live_filter' => $td_related_ajax_filter_type, //live atts - this is the default setting for this block
'td_ajax_filter_type' => 'td_custom_related', //this filter type can overwrite the live filter @see
'class' => $td_related_class
);
Step 9:
Save (in child theme /modules folder, in case you use child theme) and close file.
Step 10:
Open style.css (in child theme folder, in case you use child theme) and add following code to fix the corners of the module title background:
.td-related-title .single-item {
border-radius: 3px;
}
Step 11:
Save file and close.
Step 12:
Reopen Newsmag/includes/shortcodes/td_related_posts.php and go to line 33 and add single-item after class="td-related-left td-cur-simple-item
So it will be:
$buffy .= '<a>block_uid . '" href="#">' . __td('RELATED ARTICLES') . '</a>';
Step 13:
Go to line 36 and add td-cur-simple-item single-item after class="td-related-right
So it will be:
$buffy .= '<a>block_uid . '" href="#">' . __td('MORE FROM AUTHOR') . '</a>';
Step 14:
Save and close file.
Step 15:
Upload all files to your host and we are done! 🙂
Enjoy…
Hi,
Use this custom css and adjust the values it as you like: http://screencast.com/t/BnqGGLsSL
.td-video-play-ico {
position: absolute;
left: 10%;
top: 10%;
}
.td-video-play-ico img {
position: relative;
left: 0%;
top: 0px !important;
}
Thanks
Hi,
You can do it via css. Use your browser inspector to find the classes used there then change the container width via css. Please also send your site’s URL if you need help with this.
Thanks
Hi,
1. I will add this on our requests list and implement in future updates. Sorry for the inconvenience!
4. The images are cropped.
You can also read more about function which creates the thumbs and WordPress cropping here:
I. http://codex.wordpress.org/Function_Reference/add_image_size
II. http://www.davidtan.org/wordpress-hard-crop-vs-soft-crop-difference-comparison-example/
5.Edit single_template_2.php like this: http://screencast.com/t/XiFyFqfvW
Result: http://screencast.com/t/ITZn6dV5s3
6.1 Use the media query from below to apply your css just to the tablet screen width and also use the custom class to set hide the widget, should look something like this:
@media (min-width: 768px) and (max-width: 1023px) {
.center123 {
display: none;
}
}
6.2 I can’t access your site anymore so I can guarantee it will work but you could use this and adjust it:
.center123 {
text-align: center;
}
Hope this helps!
Thanks
Hi,
similar to your Newsmag demo website, the icons on the main menu (down arrows indicating dropdowns to the right), social icons and mobile icons are not showing, this seems to be an issue with the ‘Newsmag’ font/css not displaying the icons for some reason, how can I fix this?
http://demo.tagdiv.com/newsmag/
Allan
Hi,
1. You have to add it here: http://screencast.com/t/BPsDrUZyaQXb
2. You can so it via css and use this custom css: http://screencast.com/t/eMu0jqpZOt
.post .td-main-content .td-classic-sharing {
display: block;
margin: 0px;
}
.post .td-main-content .td-post-sharing-bottom .td-classic-sharing {
margin: 0px 0px 10px 0px;
}
Thanks
Hi,
Add this code: http://pastebin.com/zMYQVeaA to the header-menu.php file like this: http://screencast.com/t/8bQeBbSvA ..then use the custom css from below to make it look like this: http://screencast.com/t/T0kLvJDK5nyS
.header-search-wrap .td-icon-search {
margin-bottom: -3px;
margin-left: 10px;
top: 0px;
position: relative;
width: 16px;
height: 16px;
line-height: 0px;
color: #ffffff;
padding-top: 14px;
padding-left: 14px;
display: inline;
font-size: 13px;
}
.header-search .wpb_button {
margin-top: 6px;
}
Make sure you add the code like I did in the screenshot and remove the <i> tag: http://screencast.com/t/9oU00zbpO and if you don’t like the style of it you can change it as you like.
Thanks
-
This reply was modified 11 years by
Lucian.
Hi,
Not sure how you could do this for your published content besides using css which is not easy based on the different options you can chose when adding an image so to put together an selector which targets just those images and aligns them one after another.
This is a known issue with WordPress as it has an built in system whit you can use to align left/right/center images.
What you can try to do this using various methods, like adding images one after another and chose the same align for each one or try a solution form here or adding images to a div container then use css to align them which would make it easier as you would have the image placed inside a div tag specially created for this. Either way you would have to edit each post.
Here are some methods you might want to try regarding this: http://premium.wpmudev.org/blog/finally-getting-images-to-sit-side-by-side-in-wordpress/
You could also search the web for another method that could help you more.
Sorry for the inconvenience!
Thanks for the message!
Hi,
Please use this custom css and let me know if this happens again: http://screencast.com/t/uh9wtCgna
.td-header-sp-top-widget {
width: auto;
}
Thanks
Hi,
You can select the widget via css and a padding to the right/left/top/bottom of the container to have an white space around it.
Send your site’s URL and point me to the container you want to customize and I will help you with it.
Thanks
Hi,
You can use the do_shortcode() function and add the shortcode for the news ticker directly to category like this: http://screencast.com/t/oTyYO9nikGNW
First go to VC page builder and customize the ticker then switch to classic mode and get the ticker shortcode: http://screencast.com/t/04wufgypnN1I
Use this code and add your shortcode to it: echo do_shortcode('add your shortcode here'); then edit the files and add it like shown above.
Result: http://screencast.com/t/r6U8ZQ6fMSQ7
You also need use the custom css I’ve pointed in the screenshot.
.td-subcategory-header .td-category-header, .td-subcategory-header .td-category-pulldown-filter {
display: none;
}
Thanks
Hi,
Please use this custom css:
.td-related-title .td-related-left {
border-radius: 3px;
}
.td-related-title a{
pointer-events: none;
cursor: default;
}
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi Lucian,
is there a css-code for fixing the responsive setting to 980px again?
thanks, Marcus
Hi Lucian,
Thanks for answering my topic. Unfortunately the answer does not solve almost any of my problems.
I will try again:
1.- You know, especially on newspaper and magazines, there are topics that don’t need to have an author on the post credits. I had this option on Joomla (K2). This is an important feature for a magazine site. So, as there is in fact the option to show or not Author Name and Author Box, maybe is not very complex to add the option to show author by category…
2.- what a pity.
3.- Thanks!
4.- But the template stretches the images or crops them?
5.- But if I want to have the date format “l, j \d\e F \d\e Y” on single_template_2.php, how and where to add it?
6.1.- So, how to not show a widget on tablet?
6.2.- Create a custom class, “center123”. Then add it to the widget, but what code should I add on Custom CSS?
7.1.- Thanks!
7.2.- what a pity.
Regards,
Felipe Z.
Revolution Slider is a slider. You can Google that for all the info.
http://revolution.themepunch.com/
td-speed-booster helps to speed up/optimize the theme elements being loaded such as CSS and JS code.
Hi,
You helped me fixed lines between articles in a widget. But It´s only working on my home page. If you switch page, lets say to sport, the lines between articles in widgets are gone.
URL: http://www.kungalvsnyheter.se
I also try to copy this code: .header-logo-wrap {<div id=”c_31ba93ac7cdb4af163820ae3f39cb7e6″ class=”normal”><h2 style=”color: #000000; margin: 0 0 3px; padding: 2px; font: bold 13px/1.2 Verdana; text-align: center;”>klart.se</h2></div><script type=”text/javascript” src=”http://www.klart.se/widget/widget_loader/31ba93ac7cdb4af163820ae3f39cb7e6″></script> }
in custom CSS to get weather report at the top of my site. But it´s working out.
Cheers,
Joakim
Hi,
only move the # END WordPress from the end of the file to the end of the wordpress section. Some plugins look for that in .htacess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
AddType text/javascript .js
# BEGIN Expire headers
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault “access plus 5 seconds”
ExpiresByType image/x-icon “access plus 604800 seconds”
ExpiresByType image/jpeg “access plus 604800 seconds”
ExpiresByType image/png “access plus 604800 seconds”
ExpiresByType image/gif “access plus 604800 seconds”
ExpiresByType application/x-shockwave-flash “access plus 604800 seconds”
ExpiresByType text/css “access plus 604800 seconds”
ExpiresByType text/javascript “access plus 604800 seconds”
ExpiresByType application/javascript “access plus 604800 seconds”
ExpiresByType application/x-javascript “access plus 604800 seconds”
#ExpiresByType text/html “access plus 600 seconds”
#ExpiresByType application/xhtml+xml “access plus 600 seconds”
</ifModule>
# END Expire headers
Hi,
Unfortunately the theme doesn’t have an option for that and you would need additional customizations for that. You could hide it via css on posts/pages that you don’t want it if you want to hide it on some posts only and use the css Alin provided above and use the post/page id class to target one specific page.
Sorry for the inconvenience!
Thanks for the message!
-
This reply was modified 11 years by
Lucian.
When reporting this for the first time I already used wp_enqueue_style, but it did not work. Now, I tried it again and investigated further. I figured out that the order of the CSS was not wrong any more. Fortunately, wp_enqueue_style has another parameter to specifcy dependencies. And it seems that it’s enough to make the parent style dependent on the bootstrap style, which is also enqueued by Newspaper’s function.php. So, this code works for me now:
add_action('wp_enqueue_scripts', 'enqueue_parent_theme_style' );
function enqueue_parent_theme_style() {
wp_enqueue_style('parent-style', get_template_directory_uri() . '/style.css', array('td-bootstrap') );
}