- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsDefault Block Settings Guide
- TutorialsHow to use custom fonts
Hello
I accidentally deleted the additional CSS from my site, how can I recover it?
Thank you
I really didnt have chance to test it with WPRocket, I am using WP Total cache, didnt have any issues.
I tried to ask chatgpt for possible solutions, and this is the answe I got:
Exclude Cache for Shortcodes: In WPRocket settings, go to Cache and add the page URL or shortcode to the Never Cache URL(s) section.
Defer JS: Enable the Defer JavaScript option in File Optimization to delay JS loading and avoid conflicts.
Disable Minification: Sometimes minification messes with complex JS or shortcodes. Try disabling Minify CSS/JS files in File Optimization.
Clear Cache: If you’re updating posts often, make sure to clear the WPRocket cache to avoid serving stale data.
Check for JS Errors: Open the console (right-click > Inspect > Console) to see if any errors pop up, especially when loading posts.
Hopefully in one of these you will find your solution
Hello, I would like to ask how can I set a custom CSS rule in the auto-loaded articles – i.e. to change it in the iframe loaded. Thank you!
Kind regards,
Hello!
Edit the page in the tagdiv Composer, click on the row with the image, go to the CSS tab of the row, and delete the color from the overlay settings: https://app.screencast.com/zRFZHKiTZtDTd
I hope that helps you!
Thank you!
Hi petar777, thanks for the replay.
We followed the steps Anamaria outlined in this topic and have compared them with the steps described in the topic you linked
- option in theme panel to show views on post
- 24h/48h post views sorting
- ajax view count
- insert the element for single post views inside template for single post
- hide with css showing views on frontend.
and oddly enough we did not have to do the “insert the element for single post views inside template for single post” step as the “7 Days Post Sorting” works without it.
Granted, we have not tested yet and compared the post views to see if it’s calculating the views correct as opposed to data collected via Jetpack and Google Analytics vs theme counter but it is noted that if caching plugins are used this will only be an estimation. Unfortunately, we do use WP Rocket on our website so I don’t expect this option to show 100% correct data.
-
This reply was modified 1 year by
mm-2.
Hey there!
I am struggling with a problem that causes my header main menu to disappear on cached pages some times.
Can you please help me find the cause of the problem or what I should exclude in WP Rocket?
The problem is strange because it happens rarely on some pages – currently you can check this url https://eurocom.bg/2025/01/16/magdalinchev-parlamentat-pravi-kakvoto-si-iska/ and right now the main menu is missing there and I can’t find the cause of this problem.
I have minify CSS and Javascript options enabled, load javascript and delay javascript enabled too.
Best regards!
Hi,
That is possible with some CSS. Their padding and their font size could be made bigger.
For example https://prnt.sc/d6bHFr8fKhKi If you want to test it out, please enter the code from here https://pastebin.com/wjJRYrb8 in the theme Live CSS https://prnt.sc/dOV-i8QY4EI4 or in the theme panel custom CSS. You can adjust the values in the code if you want them smaller or bigger.
In case you want more adjustments to it, please let me know.
Thank you!
Hi,
I’m back setting up another website using the KID STORE theme. Can you walk me through how to change the pink banner with leaves? I would like to replace it with another image. I clicked on CSS as per the previous instructions, but the pink banner is not visible. I just can’t find it.
What am I missing?
I look forward to hearing from you.
Jaydee
Hi,
I’m back setting up another website using the KID STORE theme. Can you walk me through how to change the pink banner with leaves? I would like to replace it with another image. I clicked on CSS as per the previous instructions, but the pink banner is not visible.
What am I missing?
I look forward to hearing from you.
Jaydee
Hello,
Please use this code
body.rtl .td_block_wrap {
text-align: unset;
}
Set the code in theme panel -> custom code -> custom CSS.
Thank you!
Hello!
View a product and choose the template you like for that product from here: https://app.screencast.com/ujQ9dpKW6k8FF -> https://app.screencast.com/r6Q2kpkECuzfb
Yes. I’ll add this request to our list so we can change this functionality so that it works well when you duplicate the template. I recommend you use the mobile viewport of the cloud template at the moment. If you like an element only in the mobile viewport, add two and hide it on the desktop from the CSS tab of each element.
Thank you!
It’s no prob to change the php file(s), We have to change a number of things each time anyway, like removing the images from the search box, and changing the ‘views’ field, since many of our sites way pre-date tagdiv themes, we have existing views field as ‘views’ so don’t want two different fields for that, so always have to change that on updates. We use a number of tags and categories per story, so I move those to bottom vs above headline as it becomes a mess if something is in, say, entertainment, books, California, Los Angeles, Featured …. too many pill boxes. 🙂
NO worries. Most things CSS does the trick. But a few things, no trouble editing files as long as I keep a “map” of that.
Actually — compared to the ooooooold code base, actually easier now. v5 was refactored a bit better than v3. 🙂
Thanks again!
Chris
Having options for customizing the author box would be great indeed. For author pages/templates it is possible with Newspaper, where each element of the author box is separate in the composer https://prnt.sc/cRDUDJn14qzQ So you can use what you want, in any order.
With Newsmag it’s not possible in the same way. It will either have to be modified in the code, or with CSS. If it can be done with CSS, like hiding certain elements or changing their order, then in my opinion it’s easier to use CSS. At least you won’t have to keep making the modifications all over again after an update or reinstall. It doesn’t work for everything however.
If there’s something else that I can help with, please let me know at any time.
Thank you!
Having options for customizing the author box would be great indeed. For author pages/templates it is possible with Newspaper, where each element of the author box is separate in the composer https://prnt.sc/cRDUDJn14qzQ So you can use what you want, in any order.
With Newsmag it’s not possible in the same way. It will either have to be modified in the code, or with CSS. If it can be done with CSS, like hiding certain elements or changing their order, then in my opinion it’s easier to use CSS. At least you won’t have to keep making the modifications all over again after an update or reinstall. It doesn’t work for everything however.
If there’s something else that I can help with, please let me know at any time.
Thank you!
Hi,
Normally the top menu isn’t displayed on mobile. But it cold be made visible with some CSS. Try the code from here https://pastebin.com/GcbKMVeF It can be entered in the theme Live CSS https://prnt.sc/j5FvJzugdIaI or in the theme panel. It should make the top bar visible on mobile. Please try it and let me know if it works correctly.
Thank you!
Hello!
If you use the cloud templates, please edit the page with the tagdiv Composer and make the changes. Otherwise, use some CSS code.
Thank you!
Hi,
That will require moving the author URL code https://prnt.sc/AkM0ZLc5zHiu below the description code https://prnt.sc/oHfLtigxnABF -> https://prnt.sc/APbA6zMFiA1A
But it could also be done with some CSS, something like this would work https://pastebin.com/MgYe0aG8 -> https://prnt.sc/7LrO1tuHTCpF And maybe this is the better solution, as it won’t require modifying that php file.
Thank you!
Hi,
That is possible. You could test it on posts first. The Yoast breadcrumbs can be added in the post template file.
The post template files are in the composer here https://prnt.sc/RMECazpUiK1I Each of them corresponds to a post template, loop/single template 1 means post template 1 for example.
In the post template the theme breadcrumbs are displayed via this line of code https://prnt.sc/N65vACkzn0Bx which can be removed or commented.
Then the Yoast breadcrumbs can be displayed via the code they provide here https://yoast.com/help/how-to-implement-yoast-seo-breadcrumbs/
Like this https://prnt.sc/ZQ-uTUitRlJD
The Yoast breadcrumbs are then displayed https://prnt.sc/qb7ZfX6zQyjq and they can be customized in the Yoast plugin https://prnt.sc/vUk7Ph5Qp5ix Visually they may need some CSS to fit with the rest of the website, they look kind of rough by default.
Please try and let me know if I can help more.
Thank you!
Hello,
Please block /wp-json/tdw/save_css
If an attacker wants to target this URL /wp-json/tdw/save_css they can do so. Even if the website uses a different theme, the attacker can still try that URL. We could add an option to be able to enable/disable the Live CSS, it will be considered. But for now in order to remove it this can only be done with a modification to the composer plugin. I think that all that removing it requires is to comment this line of code – https://prnt.sc/RtwvL5Nc4ikR -> https://prnt.sc/ymZmhdUfp57U But as I mentioned, the attacker can still try to access the URL.
Thank you!
We decided not to use the Titles in that manor because of this issue. But now we are unable to use cache plugin since we inserted that code in the live css even though it has been deleted.
After deleting the WP Fastest Cache plugin (and ensuring the plugin folder was removed from the server), I switched to the WP-Optimize plugin to manage caching. Unfortunately, as soon as I turned on its caching feature, all Ads (managed via the Advanced Ads plugin) disappeared. Turning off caching immediately brought the Ads back.
Currently, I am not using a caching plugin despite the fact that we have been using them seamlessly for years alongside the Advanced Ads plugin and the Newspaper theme (which we’ve been using since Newspaper 8).
Even though I no longer need the custom CSS code, I need to understand why cache plugins are now causing this issue. Is there something lingering from the deleted code or changes made through the live CSS that might be interfering?
Your guidance would be greatly appreciated as I need to restore caching functionality without affecting the Ads.
I kept looking and the network part of inspect element shows that mode-less.js and text.js give error 404. The internal files return those files however and both in the td-composer directory. wp-content/plugins/td-composer/css-live/assets/external/ace/mode-less.js and wp-content/plugins/td-composer/legacy/common/wp_booster/wp-admin/external/ace/snippets/text.js to be exact. Could this be the problem? If so what might be blocking the access?
Pretty sure bad actors are burdening my site with 20,000+ weekly uncached requests at /wp-json/tdw/save_css. I’ve seen guidance to disable Live CSS in td-composer.php to alleviate this issue. What functionality will I lose when I disable this? The ability to make CSS edits in the TD Composer?
Hello Anamaria,
I am asking if it is possible to “Hide” the post tags. I have tried this in the additional CSS section “.tags-links {display:none;}” but it does not work with the Newspaper theme. Is there another way to achieve this with the Newspaper theme?
Again, I want to keep the post tags…I just do not want them to be visible to visitors.
Thanks!
Hello!
This is strange! I have never encountered this issue. Try to add the CSS code in the Newspaper -> Theme panel -> Custom code -> Custom CSS and check if the problem persists.
Thank you!
Hello,
You can not remove the code, but you can use this code instead
.tdi_18.td-a-rec:not(.td-a-rec-no-translate)
{
transform:none!important
}
Set the code in theme panel -> custom code -> custom CSS.
Thank you!