- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsDefault Block Settings Guide
- TutorialsHow to use custom fonts
Hi,
My website is located at
https://pildat.com
I have used Newspaper Theme to implement it with lots of custom css and some modifications in header php file. Can you please check it out once and let me know if it is upto the specs or should I make some more improvements please?
Thanks
You could move the code responsible with the source/via from the loop single file of the post template you want to modify, in the single file. Example for post template 2
– https://www.screencast.com/t/NNGpKHtm7T
– https://www.screencast.com/t/UY9Jj8ZjqjRB
Then with some CSS to position it properly
– https://www.screencast.com/t/eacW7OjHr
.td-post-source-via {
display: inline-block;
position: relative;
bottom: 2px;
}
You could further tweak this solution if necessary. Custom code can be entered in Theme panel->Custom CSS.
Hi,
I see the table you are referring to now. If you copied only the HTML then there will be no design for it. It will require CSS to style the table. I don’t know how exactly you want the table to look or how it looked in the location you copied it from.
That page also seems to be a Woocommerce product page, there is some design for Woocommerce pages that removes the table borders
– https://www.screencast.com/t/VdhkSBL7hG
I could give you a code to make the borders appear, like this
– https://www.screencast.com/t/Zvz8SWRWUQ6
The code can be entered in Theme panel->Custom CSS
.woocommerce-page .product table td {
border: 1px solid #ededed!important;
}
Thanks
I believe that is block 19, you could use a code like this to remove the thumbnail if that is what you want (enter it in Theme panel->Custom CSS)
.td_block_19 .td_module_mx2 .entry-thumb {
display: none;
}
Or you could limit the block to 2 posts and use a different type of block below it, a type that does not use thumbnails (blocks 9 or 10)
– https://www.screencast.com/t/6dr50rta1nn
Currently there is no solution for that. If you used Visual composer on posts and the tagDiv composer is active there will be layout issues. It was never recommended to use Visual composer to create posts, and it is not recommended to have both composers active at the same time.
If you could provide a link to such a post where the issue is happening, maybe something could be done with CSS to stop the layout from breaking.
Hello,
Unfortunately there is no way to stop the default font from loading except altering the main theme files. You can see the change happen because of more rewrites to the trending now element. You also change the body p general font which is another rewrite to the font. On slow connections you can see every rewrite happening on your site. This is the way css works and there is nothing to be done about it except reduce the numbers of rewrites to the same element.
You can give this topic a shot: https://forum.tagdiv.com/topic/do-i-really-need-to-change-all-the-text-fields-for-fonts/
Thank you!
@Simion do you mind checking my site for the speed as well?
I am trying caching, image optmiziation, minifying css, javascripts, etc. but when a user loads the site it takes at least 30 second for it to load.
Thanks
Hello,
Google is validating my pages and it cant be done, since there are some !important tags in CSS that shouldnt be there.
“The text (CDATA) inside tag ‘style amp-custom’ contains ‘CSS !important’, which is disallowed.”
I can see that others are having this problem too, so it would be nice if you could let us know where in the template can we remove those tags, so that google validates pages normally.
Best regards.
Hello!
Google shows that I have problem with AMP page – “Tag “style amp-custom” contains an invalid sequence of characters: “CSS important!”.”
How to solve this problem?
The top menu is not displayed on mobile, it is not supposed to display. It could be made to appear when the mobile theme plugin is not active, if absolutely needed. It would require a code like the following in this case
– https://www.screencast.com/t/kIe6BhRbVTJ
This code can to be entered in Theme panel->Custom CSS section
@media (max-width: 767px){
.td-header-top-menu-full {
display: block!important;
}
.td-header-sp-top-menu {
display:block!important;
text-align:center;
}}
Regarding the thumbnails, when stretching the rows with content the thumbnails will be stretched as well. That is why they appear like that. You can use Full big grids which use larger thumbnails
– https://demo.tagdiv.com/newspaper/full-big-grid-1/
Or try experimenting with the new flex block in which you can select thumbnail size
– https://demo.tagdiv.com/newspaper/flex-block/
– https://www.screencast.com/t/KC4BVGaq
Thanks
Hi,
Rows have a default padding on mobile. You could try something like this. First set a custom class of your choosing for the row containing the counter (so other rows will not be affected)
– https://www.screencast.com/t/LmtoeTf4aL
Then use a code like this in Theme panel->Custom CSS it should work
– https://www.screencast.com/t/RBnVWVK6ce
.td-stretch-content .myclass {
width: 112%;
margin-left: -24px;
}
Dear,
I have a very very strange issue. I’m removed custom css you’ve suggested to hide pagination but… no pagination shows…
Veyr very strange…!
Where I can see?
I removed .page-template-page-pagebuilder-latest
.page-nav
display: yes; from CSS but still not displayed pagination…
Hi there,
First of all thanks for this great theme!
I can hide big grid 3 on responsive category pages with this css:
@media (max-width: 767px) {
.category .td_block_big_grid_3 {
display: none;
}
}
But the issue is all the latest 4 posts (the ones on the big big grid) on each category pages are all gone with the big grid.
How can I hide the big grid on responsive and still keep the latest 4 posts on infinite scroll block.
Thanks!
The default value is 14px for the body on mobile, with a line height of 21px
– https://www.screencast.com/t/1bRyQMuH
You can simply use a code like this to modify it
– https://www.screencast.com/t/ZbVEa33gUTw
body, p {
font-size: 17px;
}
Custom CSS codes can be entered for the mobile theme in Theme panel->Mobile theme->Custom CSS.
You could also edit the mobile theme stylesheet and make the modifications directly there, instead of overriding them
– https://www.screencast.com/t/ZaBaESdgJYet
Thanks
Thanks. I’d tried using the code in three different ways, finally even changed the style.css by ftp. And it still didn’t show any change on the page. ? I can live with how it is I guess.
A bigger issue is: I’d like the big grid 4 to somehow go the full width of the page, be able to add a third feature there, and have no space between each feature. ???
So on the homepage using TD-Composer, when using Big Grid Full 10 it goes to the width of the column (which I believe is 1000px by default) and is the same width as the menu bar. https://www.post2post.co.uk/
I want this to happen on our category pages as well, however, it keeps going full width. I have tried adding in some CSS code to make it only go to the same width as the menu bar, and it kind of works on desktop, but breaks the mobile pages. Is it possible to do this? https://www.post2post.co.uk/category/article/england/premier-league/
Also: Is there some way to reduce the thickness of the menu bar, it is quite thick at the moment and I would like to add some code to reduce the thickness of it, I can sort of do it, but it breaks upon hovering over the menu items. I’ve tried adding it to all the classes, but I can’t seem to find the right ones.
Thanks
I installed the child theme but nothing changed since fonts are not custom css but options in the theme panel. How can I stop it from loading the default font first?
Hello Bogdan,
I’m still having problem with the fonts and business theme.
On a site that I used the default theme, the custom fonts and all the custom css load immediately. My problem is the business theme.
I like it and I want to use it but this is a problem that needs a solution. Editing the style.css is not a solution as there will be issues with future updates.
Do you by any chance have the custom css of business theme to add it directly instead of importing the options?
Hello Amee,
You should provide your website URL and a screen with the problem. Notice that the theme does not have any such an option for collapsable comments, sorry! Maybe, space can be reduced with a custom CSS code.
Thanks for the message!
I really don’t know how that would be possible. A simple comment in the code for a theme element on the post page, or entering a code in the custom CSS section of the theme panel, would cause the whole page to be not found.
Please send us an email at contact@tagdiv.com and provide admin login information. We will take a look. Include a link to this topic in the email.
Thank you for replying. I would like to change the body font size to 17px let’s say, and I would appreciate if you could give me a quick CSS to do that.
Cheers!
Hi,
Indeed the mobile theme plugin does not have font settings. This could only be done with CSS. These is a similar topic explaining how you can load an additional font on mobile
– https://forum.tagdiv.com/topic/change-font-of-mobile-theme/
Then apply it to the elements you want with CSS. The font size could be changed the same way. I can give you some pointers if you could mention for which elements you want to make this modification exactly.
Thanks
Hi Catalin,
I have looked all over on the Theme Panel but there is no place to disable black square box that has the comment count. I have checked in the module boxes and anywhere we can think, but oddly this doesn’t seem to be an option.
Is it something that needs to be done with CSS code?
Thanks!
also i want to change css of related post. ttps://wp.me/p5FCRd-j0L


so far it comes in a hover pink as ##ff3399. i want to make them color called #7e7e7e.
I’m seeing this on my site too. Just updated to Newspaper 8.7.2 and noticed a Facebook button appearing at the bottom of my posts in a td-post-sharing-classic div.
I didn’t make any changes to any theme options, and definitely didn’t enable any sharing plugins, since I use Social Warfare to handle my floating share buttons.
Is this custom CSS really the only way to handle this? Why is it appearing, if I didn’t enable anything, and why isn’t there a way to disable it via the theme panel?
Update: I tried both custom CSS mentioned here, and neither worked.
-
This reply was modified 8 years by
Solstyce.