- 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
Hello 1CBAR1,
Are you referring to these elements -> https://www.screencast.com/t/WjkIbsk7J9S? Notice that the theme does not have any such an option that allows you to change this, sorry! As you can see, this is just a photo added through the theme. -> https://www.screencast.com/t/Anb5QltvJ If you want to change this image with another one, you should edit the style.css and replace it with your desired image.
Thanks for your understanding!
Hi,
I cannot say how you would remove those tags. There must be a reason Visual composer ads them there. But when there is need of so many Css fixes, something may not be working properly. Once you start using codes to fix one thing, this could affect another and so on.
If you managed to achieve a stable result, just leave it as it is.
Thanks
Hi,
Sorry but this can only be done with customization. The theme has no option to change the menu layout.
A quick solution would be to limit the size of the drop-down and add a scroll to it like so: https://www.screencast.com/t/3vnhLD6p
In order to do this you can add this code in the theme panel-> custom css box:
.sub-menu{
max-height:410px;
overflow:Auto;
}
Thank you!
Hello ytre77,
You can adjust the squares from such a CSS code. try the code below and place it in Theme panel->Custom CSS area.
The code is ->
.td-social-style5 .td_social_type .td-social-box {
margin: 0 1px 16px;
}
The result is here -> https://www.screencast.com/t/SblkLVOzf
Notice that is just a quick fix in this regard and you may need more customizations for other devices which you should make it yourself because we cannot provide any additional customizations in this regard, sorry! By default, this element works as expected but notice that if you will make some modifications at it, the layout may be corrupted.
Thanks for your understanding!
Hello @ruzzolo
Add following code to Custom CSS field in theme panel.
/**Add border to top menu**/
.td-header-style-1 .td-header-top-menu-full {
border-top: 4px solid #009688;
}
/**Add border to main menu**/
.td-header-style-1 .td-header-menu-wrap-full {
border-bottom: 4px solid #009688;
}
The code will work for Header style 1
You can assign your style number if you using another header style to work with it.
Thank you for your understanding.
CSS file is slowing my site speed. I have looked into the source files of newspaper to get it to the footer or load it async.
How to move the CSS below to the footer?
“https://**.com/wp-content/plugins/td-composer/css-live/assets/css/td_live_css_frontend.css?ver=4.8”
Hello Tagdiv,
I have the Craft Theme for Newspaper installed for a website that I am still building (cutebabyantreviews.com). While I love the watercolor look of the buttons in the sidebar and “read more” buttons, I would really like to be able to change the colors to match the rest of the colors on my website. I have seen forum topics addressing other color changes using css, but not for this specific topic. Could you please help? I am a total newbie. Thank you.
I tried expiry headers from my host https://www.siteground.com/kb/leverage-browser-caching/
but the same problem still exists. Also, I did delete the cache.
Here is the content of my .htaccess
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTPS} !on [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.mysite.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^mysite.com [NC]
RewriteRule ^(.*)$ https://www.mysite.com/$1 [R=301,L]
#disable hotlinking of images with forbidden or custom image option
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mysite.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L]
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg “access 1 year”
ExpiresByType image/jpeg “access 1 year”
ExpiresByType image/gif “access 1 year”
ExpiresByType image/png “access 1 year”
ExpiresByType text/css “access 1 month”
ExpiresByType application/pdf “access 1 month”
ExpiresByType application/javascript “access 1 month”
ExpiresByType application/x-javascript “access 1 month”
ExpiresByType application/x-shockwave-flash “access 1 month”
ExpiresByType image/x-icon “access 1 year”
ExpiresDefault “access 2 days”
</IfModule>
## EXPIRES CACHING ##
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
# 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
AddHandler application/x-httpd-php70 .php .php5 .php4 .php3
RewriteEngine on
RewriteBase /
RewriteRule ^naturopathic/(.*) https://www.mysite.com/naturopathy/$1 [R=301,L]
RewriteRule ^physical-therapist/(.*) https://www.mysite.com/physical-therapy/$1 [R=301,L]
RewriteEngine on
Redirect 301 /physical-therapist https://www.mysite.com/physical-therapy
Redirect 301 /naturopathic https://www.mysite.com/naturopathy
I managed to fix it with some bad CSS.
.vc_pageable-slide-wrapper p {
margin: 0;
clear: both!important;
display: none;
}
.vc_grid-item p {
display: block!important;
}
This is a temporary fix for me. If you know how to remove those <p> please tell me, thanks.
I found a piece of the solution!
This happens because of 2 reasons :
.vc_grid.vc_row.vc_grid-gutter-30px {
margin-right: -30px;
}
(which I don’t know why this is happening)
So I added on custom CSS :
.vc_grid.vc_row.vc_grid-gutter-30px {
margin-right: 0!important;
}
AND
the <p></p> that is adding itself after each block.
I don’t know how to remove them. Do you know how?
Thanks
You have to use file-ID to move css or js
For JS files – $this->move_js_to_footer(‘FILE-ID’);
For CSS files –$this->move_style_to_footer_queue(‘FILE-ID’);
To get File-ID add following code on theme’s functions.php file
function td_inspect_scripts() { global $wp_scripts, $wp_styles; echo 'registered scripts<br>'; foreach ($wp_scripts->queue as $handle) { echo $handle . ' | ' . $wp_scripts->registered[$handle]->src . '<br>'; } echo 'registered styles<br>'; foreach ($wp_styles->queue as $handle) { echo $handle . ' | ' . $wp_styles->registered[$handle]->src . '<br>'; } } add_action( 'wp_print_scripts', 'td_inspect_scripts' );
Refer: 5.2 To get the list of registered css and js https://forum.tagdiv.com/how-to-make-the-site-faster/
Hi,
You can try a code like this one for example
– https://www.screencast.com/t/PvKfII9sa
.td-category-description {
text-align: center;
width: 100%;
}
.category .td-crumb-container {
display: none;
}
Just enter it in Theme panel->Custom Css section.
Thanks
Use following code instead:
# BEGIN Caching
<ifModule mod_headers.c>
<filesMatch "\\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=2592000, public"
</filesMatch>
<filesMatch "\\.(css)$">
Header set Cache-Control "max-age=604800, public"
</filesMatch>
<filesMatch "\\.(js)$">
Header set Cache-Control "max-age=216000, private"
</filesMatch>
<filesMatch "\\.(xml|txt)$">
Header set Cache-Control "max-age=216000, public, must-revalidate"
</filesMatch>
<filesMatch "\\.(html|htm|php)$">
Header set Cache-Control "max-age=1, private, must-revalidate"
</filesMatch>
</ifModule>
# END Caching
Hi,
Below is a page speed problem I get from gtmetrix:
Serve resources from a consistent URL
The following resources have identical contents, but are served from different URLs. Serve these resources from a consistent URL to save 1 request(s) and 9.2KiB.
https://fonts.googleapis.com/css?family=Open+Sans%3A400%2C300%2C600%2C700&ver=4.8
https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700
https://fonts.googleapis.com/css?family=Roboto%3A400%2C300%2C500%2C700&ver=4.8
https://fonts.googleapis.com/css?family=Roboto:400,300,500,700
How did this happen? How can it be fixed?
Thanks
Hello,
Sorry but the theme does not have a feature to remove the title for specific categories only. You can hide it with css from preferred categories though. Here is an example:
.category-gadgets .td-page-title{
display:none;
}
You can add more categories to the code like so
.category-gadgets .td-page-title, .category-fashion .td-page-title, .category-video .td-page-title, .category-mycategoryname .td-page-title{
display:none;
}
You can add the code in the theme panel-> custom css box
Thanks
Hi,
If the options you need is not available for some elements, you can always use some CSS for further styling. If you could provide more detailed information about what exactly you are trying to center align, or a link to your website where the element is present, I will try to give you a solution.
Here you can find more information about using the tagDiv composer
– https://forum.tagdiv.com/tagdiv-composer-tutorial/
Thanks
Hello,
You do not need to alter style.css as the theme panel has a custom css section where you can add your custom code.
You can try this code in the theme panel:
@media (min-width: 1019px){
.td-header-style-1 .td-header-sp-recs, .td-header-style-1 .td-header-sp-logo {
margin-bottom: 2px!important;;
}}
Thanks.
Hello,
1) The code is in style.css. Please access your theme files and access style.css. Then copy all the lines of code from line 7978 to line 8090
If this is too difficult, here is the code directly: https://pastebin.com/GUi6M4N2
2) The buttons will work on the standard responsive version of the theme properly. Only the mobile theme has the css missing for the buttons. The responsive version uses the same code as the desktop theme. Only the mobile theme has a different implementation.
Thank you!
Hello ytre77,
As a quick solution notice that you should use the code below and place it in Theme panel->Custom CSS area.
The code is ->
.td-social-list{
padding-left: 75px!important;
padding-right: 0px!important;
}
The result is here -> https://www.screencast.com/t/8V6Fucfwrht
Thanks for the message!
Hi,
Please also add this code in the theme panel->custom css box:
.td-post-featured-image img{
margin:0!important;
}
Thanks.
Hi guys,
I just noticed today that my post title, author name, and date disappear on posts when resized to tablet and mobile width. This is new and I have not made any changes (that I’m aware of) other than updating to Newspaper 8.
I checked my custom CSS code and did not find anything that would have affected this. When I looked at the Newspaper 8 demo on mobile/tablet, I can see that the meta info still appears, so not sure what’s different about my installation compared to yours.
My other thought is that it could somehow be linked to a plugin conflict, but this also seems unlikely since I have not added or made any changes to my plugin files.
Would welcome any suggestions you might have.
Thanks guys 🙂
Hi,
Im using style 1 header and want to remove the up and down margins from the logo and ad.
I make the changes in custom css, using the inspector of firefox, everything worked, but cant change the “margin-botton: 28px” property, I want it to be 0px. It seems that this property is on another place but not in style.css.
You can see it in my site: http://www.guatefutbol.com/nw
Please help.
Hi Simion!
Thanks for your reply and help.
I think I didn’t explain properly, I try again.
Yes thos grid items have the float left property set because I edited the js_composer file.
Check that, now i put it right like it was before : https://i.imgur.com/veMkXoX.png
See the float:none?
It overwrites the float:left property.
So to “fix it” I edited js_composer.min.css and put /* float:none; */ on it.
But we all know that this won’t fix it forever.
I don’t find any relation between the font and this float property.
Can you help me on this plz? Thanks
PAGE: http://travision.uk/border-test/
2 pictures with class added – Border OK
POST
http://travision.uk/post-border/
You will see the border issue, I haven’t changed Media sizes in WordPress as it doesn’t make any difference.
I’m assuming it’s what we say in the UK ‘Finger Trouble’ as I am no expert!
I have added the custom css as you instructed.
Do I Email WordPress Admin to you, if so how?
Thank you Bogdan for you help
Hi,
I have tried to replicate this issue using an exact layout as you have, but in my case everything works properly in this situation. The problem seems to happen only on the first two blocks. I don’t see anything wrong in the blocks structure. Maybe you are using some custom Css or code that could be causing the problem.
Also a plugin could interfere. The link on the modules seems to be not clickable, although it is present, but only for the first two blocks.
Thanks