- NewsmagtagDiv Composer Tutorial
- NewsmagBlock settings tutorial
- NewsmagLogo & Favicon
- NewsmagFooter templates
- NewsmagUsing other ads
- NewsmagUsing Typekit fonts
Hello jeanlucb,
Try to use the code below and place it in Theme panel -> Custom CSS area.
The code is ->
.td-header-sp-top-widget{
text-align:center;
}
.td-header-row [class*="td-header-sp"] {
float: none!important;
}
The result is here -> https://www.screencast.com/t/4tbtjp6nyA
Hope this helps!
Thanks for your understanding!
Hi,
The links color is inherited from the theme accent color
– https://www.screencast.com/t/r0q1z95AHW9g
If you would like to change it for the post content only, you could try a code like this
– https://www.screencast.com/t/lhZEcFhhfBIG
Use the color you want in the code if you decide to use it, then enter it in Theme panel->Custom CSS
.td-post-content a {
color: yellow;
}
Thanks
For some reasons the php code is broken after I publish the post and I cannot edit the post anymore.
The correct code is here:
Plugin used: Co Authors Plus 3.2.2
Multiple authors links below the article title
Modified files: find the file template that you want to use > loop-single.php, loop-single(1, 5, 9, 10).php, single_template_(2, 3, 4, 6, 7, 8, 11, 12, 13).php,
Replace this:
<?php echo $td_mod_single->get_author();?>
With: https://pastebin.com/7Y8kpfTy
CSS:
header .td-post-author-name.multiple-authors a {
margin-right: 0;
}
header .td-post-author-name.multiple-authors .td-author-by {
margin-right: 5px;
}
.td-post-author-name.multiple-authors a:after {
content:”,”;
margin-right: 6px;
}
.td-post-author-name.multiple-authors a:last-of-type:after {
content:””;
margin-right: 3px;
}
Multiple authors boxes on article page
Modified files: find the file template that you want to use > loop-single.php, loop-single(1-13).php
Replace this:
<?php echo $td_mod_single->get_author_box();?>
Hello KosherCoder,
Please keep in mind that what you want to do is a BIG update and the theme will be broken because it is totally another theme, sorry!
In order to achieve the best results after you will install the latest update you have to follow some rigorous steps like this -> you have to delete both of your themes, child theme, and main theme. All your customizations from your Newspaper 4 theme will do not work because all the files from this were changed in Newspaper 8.1 and as the main theme and also you lose all changes.
The Newspaper 8.1 is a whole new theme so an update from 4 to 8.1 may cause the same issues as switching to another theme (but we did try to maintain compatibility where ever possible).
Always make a full backup of your current installation – https://codex.wordpress.org/WordPress_Backups and then do a clean update, meaning that we recommend that you delete the old version of the theme before uploading the new one – https://forum.tagdiv.com/how-to-update-the-theme-2/ update also the plugins that come bundled with the theme files from the /plugins folder. In the “how to update” guide is specified that you will have to run the script that will import from database your settings.
The shortcodes have been changed so old ones will not work anymore. Please note that old files customization or custom CSS will not work with the new version and you will have to adjust or re-add them. Bottom line is that newspaper 8.1 is a whole new theme built from scratch.
Unfortunately, you will have to clear your agenda and spare a bit of time to adjust all your settings to the new version of the theme.
Hope this helps and let us know how it goes!
Thank you for the message!
Hi,
You could try a code like this for example
– https://www.screencast.com/t/UPx5GQIq
It will make the post title the color you want. On hover the title color will still be default.
.td_block_big_grid_fl_8 .td-big-grid-post .entry-title a {
color: black;
}
If you want it to remain black at all times, add this code too
.td_block_big_grid_fl_8.td-big-grids-fl .td_module_wrap:hover .entry-title a {
color: black;
}
This code must be entered in Theme panel->Custom CSS section.
Thanks
Hello Mommywentrogue,
Please try using the code below and place it in Theme panel -> Custom CSS area.
The code is ->
.footer-email-wrap a {
color:red!important;
}
Thanks.
Hello ekotnar,
1)You should try to use a bit of CSS code to do this ->
.td-icon-search{
display:none!important;
}
2)All the changes for Top Bar should have to be made from Menus section in WordPress, like here -> https://www.screencast.com/t/B7Qszj4FAvrx
3)Sorry but please notice that the maximum available columns for footer section are 3 and not 4.
4)Please check our Footer Templates because there you will see a lot of options for this case. If you want to have your own footer style, you should try to use the Footer Template Style 5. For more information about our footer templates, please check here -> https://forum.tagdiv.com/footer-templates/
Hope this helps!
Thanks for your understanding!
I needed multiple authors names below the title and multiple authors boxes on articles. Using the various solutions found on this forum I have compiled a complete solution
Plugin used: Co Authors Plus 3.2.2
Multiple authors links below the article title
Modified files: find the file template that you want to use > loop-single.php, loop-single(1, 5, 9, 10).php, single_template_(2, 3, 4, 6, 7, 8, 11, 12, 13).php,
Replace this:
<?php echo $td_mod_single->get_author();?>
With:
<?php
if (td_util::get_option(‘tds_p_show_author_name’) != ‘hide’) {
//echo $td_mod_single->get_author();
$coauths = get_coauthors();
if (count($coauths) > 1) {
echo ‘<div class=”td-post-author-name multiple-authors”><div class=”td-author-by”>De către</div>’;
foreach ($coauths as $key => $coauth) {
echo ‘user_nicename . ‘”>’ . $coauth->display_name . ‘‘;
}
echo ‘<div class=”td-author-line”> – </div></div>’;
} else {
echo $td_mod_single->get_author();
};
}?>
CSS:
header .td-post-author-name.multiple-authors a {
margin-right: 0;
}
header .td-post-author-name.multiple-authors .td-author-by {
margin-right: 5px;
}
.td-post-author-name.multiple-authors a:after {
content:”,”;
margin-right: 6px;
}
.td-post-author-name.multiple-authors a:last-of-type:after {
content:””;
margin-right: 3px;
}
Multiple authors boxes on article page
Modified files: find the file template that you want to use > loop-single.php, loop-single(1-13).php
Replace this:
<?php echo $td_mod_single->get_author_box();?>
With:
<?php
if (td_util::get_option(‘tds_show_author_box’) != ‘hide’) {
//echo $td_mod_single->get_author_box();
$coauths = get_coauthors();
if (count($coauths) > 1) {
echo ‘<div class=”author-box-list”>’;
foreach ($coauths as $key => $coauth) {
echo ‘<div class=”author-box-wrap”>user_nicename . ‘”>’;
echo get_avatar( $coauth->user_email, ’96’ );
echo ‘<div class=”desc”><div class=”td-author-name vcard author”><span class=”fn”>user_nicename . ‘”>’ . $coauth->display_name . ‘</span></div>’;
echo ‘<div class=”td-author-description”>’ . $coauth->description . ‘</div>’;
echo ‘</div><div class=”clearfix”></div></div>’;
}
echo ‘</div>’;
} else {
echo $td_mod_single->get_author_box();
};
}?>
Note: the multiple author boxes will work only with default users gravatar, not with the custom avatar plugins
Hope that helps
Hello cjs,
I guess that you are referring to the Voice Report demo, right? So, if you want to change the very top image from your header style, notice that you should use a bit of CSS code to change the background image, like this -> https://www.screencast.com/t/bMAofCse
The code which you have to use should look like this ->
.td-voice .td-header-style-9 .td-logo-wrap-full {
background-image: url(add the link of your image);
}
Thanks for your understanding!
@ Simion,
1. This is not an answer to my question. I did use the tutorial. I told you speedbooster is active and still Google keep giving me this Contact Form 7 render error. Why is that?
https://www.dagonline.nl/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=4.9
2. Thanks.
3. Ok. Can i just delete them (safe them first), make them smaller en reupload them again via FTP with the same name?
Hi,
You can try a code like this, for both the logo and header menu shadow
– https://www.screencast.com/t/hDVeqM3u
Enter it in Theme panel->Custom CSS and the result should be like you want.
.td-header-style-9 .td-header-gradient:before {
display: none;
}
.td-header-style-9 .td-header-sp-logo {
max-width: 1068px;
margin: auto;
}
.td-header-style-9 .td-logo {
float: right;
}
.td-header-style-9 .td-logo-wrap-full {
min-height: 190px;
}
Thanks
Hi,
1. Contact Form should not be considered render blocking. By default the Speedbooster plugin will move the plugin resources in the footer, this is tested and it should work properly
– https://www.screencast.com/t/djvztImzh
This is a useful guide
– https://forum.tagdiv.com/how-to-make-the-site-faster/
2. When the Speedbooster plugin is active, a minified theme JS is served, for CSS you could try this solution for example
– https://forum.tagdiv.com/topic/tip-how-to-easily-minify-your-css-without-breaking-your-site/
3. Those images are displayed when there is no thumbnail for the post. If the posts have featured images set, they will be replaced by thumbnails created from them.
There are many useful speed optimization guides here on the forum, here are some of them
– https://forum.tagdiv.com/topic/score-100100-pagespeed-with-newspaper-wordpress-theme/
– https://forum.tagdiv.com/topic/newspaper-theme-speedify-your-website/
Thanks
Hi,
I’m using a custom CSS style for padding, which slightly affects the width of the thumbnail. Result: the thumbnail becomes blurry, or not as sharp as it should be.
Is there a way to solve that?
Hi,
I’ve enabled a cache plugin, but the image gallery works better as before.
I wanted to know which js or css files use the image gallery to work, so to exclude it from cache and minify.
I hope I have been clear, look forward to your news, good work
Open the CSS tab of the first block inserted in the page and play with the numbers (pixels if I am correct) – you should be able to move the block as you please.
Hello!
I’m currently having trouble with my RSS feed and wondering if this is an issue that has to do with the theme. I would like to remove the “Continue Reading” link after the excerpt on my RSS feed.
https://sneakers.tech/feed (you can see the link after each post) I’d like to remove it.
When I go to Settings -> Reading -> then switch to Full text it breaks my RSS feed and it no longer validates. I thought that would fix the issue but it broke my feed instead.
I was wondering where in the css and/or php files I can remove this link from showing up in my RSS feed.
Hi,
I have a problem with module 10. Placeholder images are disabled, but the height of the module seems to be determined by the fixed height of the thumbnail –no matter if there is a real thumbnail or not–. This creates unconvenient gaps between paragraphs when there is no thumbnail to show, and it looks like something is missing or broken.
I need to make the height of the module adaptable, depending on the height of the text, which depends on the variable length of the title and the excerpt.
The same applies to module 6 and others.
Is there a way to fix this on the theme panel, or with CSS, or with PHP?
Thanks!
Theme: Newspaper 8.1.
View of this scenario is within the demo. My version is on a not-public server.
https://demo.tagdiv.com/newspaper_architecture/ellie-gouldings-living-room-is-all-about-texture/
I am not asking to remove the gap. Im wondering if the gap is supposed to be that way, or if there is a setting to adjust it. I also wanted to point out that adding a review to the post seems to mess up the css in that block.
-
This reply was modified 8 years by
joshuabaer23.
I created a folder to use it as child theme with 2 file of function.php and style.css with the code below.
function.php
<?php
add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_styles’ );
function enqueue_parent_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
}
?>
style.css
/*
Theme Name: montreal
Theme URI: http://hafteh.ca/mtl/
Description: Newspaper child
Author: John Doe
Author URI: http://hafteh.ca/
Template: Newspaper
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: montreal
*/
But when I activated the child theme and download the demo all blocks are broken and the sidebar is not in its place, It is not possible to put two blocks beside each other and …
The URL is this: http://hafteh.ca/2017/mtl/
Please help me to find out how can I have a child theme.
Dear tagDiv-Team
at my site speiseraeume.de I am trying to solve two design “problems”:
1. I am using header style 9 and I would like to have the logo not centred but on the right side aligned with the right end of the big grid.
2. I would like to delete the shadow under the main menu.
Any CSS suggestions?
Thank you!
Hello,
1. Google keeps giving me this (only) render block error below. I activated Speedbooster and made sure it was not disabled by any other plugin. It didnt make any difference and keeps giving me this error.
https://www.dagonline.nl/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=4.9
How can i solve this?
2. Also, what is the best way to minify JS, CSS and HTML with the Newspaper theme?
3. http://www.webpagetest.org keeps saying i need to optimize the 2 files below. What is the best way to do this? I use Short Pixel to optimize my images.
FAILED – (15.6 KB, compressed = 0.7 KB – savings of 14.9 KB) – https://www.dagonline.nl/wp-content/themes/Newspaper/Newspaper/images/no-thumb/td_324x235.png
FAILED – (14.8 KB, compressed = 0.4 KB – savings of 14.4 KB) – https://www.dagonline.nl/wp-content/themes/Newspaper/Newspaper/images/no-thumb/td_100x70.png
Thanks!
Hi,
I could give you a code to change the font size for that element, but it would apply to all the block text with titles on the page
– https://www.screencast.com/t/7OIPZE9AteN
If you would only want to change the font-size for that particular element, you can set a custom class for it
– https://www.screencast.com/t/eTIVIhz586
Then use that to modify only that element
– https://www.screencast.com/t/cMaGo9td
This is the code used in both the examples
.td_block_text_with_title .block-title>span {
font-size: 25px;
}
.my_class .block-title>span {
font-size: 25px;
}
After creating the needed code, it must be entered in Theme panel->Custom CSS section.
Thanks
Hi,
The browser inspector tool is a powerful tool that can be used to inspect the page and see the classes used. This is a useful guide for this purpose
– https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/
1. That gradient on the slide could changed with a code like this
– https://www.screencast.com/t/Bp9jkwGdR
Use the colors you want in the code, then enter it in Theme panel->Custom CSS section
.td_block_slide .td-image-gradient:before {
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(25, 85, 199, 0.8) 100%);
}
2. The subtitle will be displayed on the post page
– https://www.screencast.com/t/1hg237kqz
– https://www.screencast.com/t/K2sRiSz2tI6
Block modules do not display subtitles, some display excerpts for the post
– https://forum.tagdiv.com/excerpts-introduction/
The slide in particular does not display an excerpt. That could only be achieved through code modifications, here are some similar topic
– https://forum.tagdiv.com/topic/subtitle-in-slider/
– https://forum.tagdiv.com/topic/how-to-show-excerpt-in-slider-module/
Thanks
I find the solution. It was style.css
I have uploaded style.css, but is not working.
Nothing with SSL.
Thank you.
Hi,
You could use a code like this, and set a bigger margin between the images
– https://www.screencast.com/t/TSSkvw3v9
Use the value you want in the code, then enter it in Theme panel->Advanced CSS in the mobile section so it will only apply on mobile
– https://www.screencast.com/t/H2h5PZ0n07P4
.td_block_image_box .td-custom-image a {
margin-bottom: 10px;
}
Thanks