Hi clienttela,
Unfortunately, using the Newsmag theme the only option to hide the header and footer from a specific page or post it is to use a custom css, something like this -> https://i.imgur.com/gLyubH6.jpg the page id can be found here -> https://i.imgur.com/RenB02A.png
.page-id-334 .td-header-wrap, .page-id-334 .td-footer-container {
display: none;
}
This code need to be set in the theme panel > custom code> custom css.
Do not forget to change the page id with yours.
I hope it will help you!
Thank you!
My site is experiencing high CPU usage and apparently it is because of a large number of 404 errors generated by newspaper them. Have attached an excerpt of the log here- there are access requests for the following assets that do not exist
GET /wp-content/plugins/td-standard-pack/Newspaper/assets/css/images/sprite/weather/snow-d.png HTTP/1.0
GET /wp-content/plugins/td-standard-pack/Newspaper/assets/css/images/sprite/weather/rain-n.png HTTP/1.0
GET /wp-content/plugins/td-standard-pack/Newspaper/assets/css/images/sprite/weather/clear-sky-d.png HTTP/1.0
GET /wp-content/plugins/td-standard-pack/Newspaper/assets/css/images/sprite/weather/few-clouds-d.png HTTP/1.0
GET /wp-content/plugins/td-standard-pack/Newspaper/assets/css/images/sprite/weather/scattered-clouds-n.png HTTP/1.0
GET /wp-content/plugins/td-standard-pack/Newspaper/assets/css/images/sprite/weather/few-clouds-n.png HTTP/1.0
There are a few more like this. do you know what is going on?
Might have to change the condition before the loop too.
if ( count( $style_matches ) && is_array( $style_matches[ 0 ] ) ) {
foreach ( $style_matches[ 0 ] as $style_match ) {
// find inline css
$result_style .= preg_replace( ‘/.tdi_(\X*)/miU’, ‘.td-gutenberg-editor .editor-styles-wrapper .wp-block’, $style_match );
}
}
should be
if ( count( $style_matches ) && is_array( $style_matches[ 1 ] ) ) {
foreach ( $style_matches[ 1 ] as $style_match ) {
// find inline css
$result_style .= preg_replace( ‘/.tdi_(\X*)/miU’, ‘.td-gutenberg-editor .editor-styles-wrapper .wp-block’, $style_match );
}
}
-
This reply was modified 4 years by
Frederic Fauvel.
-
This reply was modified 4 years by
Frederic Fauvel.
There is a bug in the common.php locate at td-composer/legacy/common/common.php.
If you have more than 1 tdb_single_content shortcode in a page, the css will end up with an extra </style> markup.
The preg_match capture should be use (\X*):
// find inline css
preg_match_all( ‘/\/\* custom css \*\/(\X*)<\/style>/miU’, $rendered_shortcode_content, $style_matches );
…
foreach ( $style_matches[ 0 ] as $style_match ) {
It’s using the first index [ 0 ], that include the </style>
Then
$result_style .= preg_replace( ‘/.tdi_(\X*)/miU’, ‘.td-gutenberg-editor .editor-styles-wrapper .wp-block’, $style_match );
will end up with
“first block of css</style>second block of css</style>”
then
$style = ‘<style>’ . $result_style;
will make it
<style>first block of css</style>second block of css</style>
foreach ( $style_matches[ 0 ] as $style_match ) {
should be
foreach ( $style_matches[ 1 ] as $style_match ) {
and
$style = ‘<style>’ . $result_style;
should be
$style = ‘<style>’ . $result_style . ‘</style>’;
Regards
Hello!
Oh, I see.
Please add this CSS code in Newspaper -> Theme panel -> Custom code -> Custom CSS:
.td-post-template-3 .entry-title, .td-post-template-7 .entry-title, .td-post-template-8 .entry-title{
color: white!important;}
Thank you!
You can say. Where to add the script.
if i add html string and css to it.
And in which folder to put the script, I do not know.
https://ibb.co/r0Br1R3
Oh dear – it seems you haven’t read my initial post on this:
“The post title in this template is overlaid on the featured image – fine. But if it’s black it’s invisible on a dark image. It can can be changed to white in Theme Fonts. Then it becomes visible. But then it becomes invisible on posts using Style 1 Template, where the title appears on the a white background.”
As you can see, I know colour can be changed, but the change is universal. Is there a glitch in the coding? If you look at the templates offered in WP Editor, it’s obvious that Style 3 offers title text is white on a dark background. But in use the text is black.
Either the code needs addressing – the best solution – or can you supply CSS and tell me where to put it to change title colour on just templates 3, 7 & 8?
Please read the trail above – I hope you’ll be able to understand and address my point.
Thanks
MG
Hello,
If you are using the Gutenberg editor, then there will be no sidebar in the editor, this will look like this -> https://i.imgur.com/F6PUBhU.png
If you are using some classic editor plugin, then the sidebar can be removed only from the files, for this, you need to go in -> wp-content/themes/Newspaper/editor-style.css and comment these lines of CSS -> https://i.imgur.com/DqjLdxU.png
Hope this will help you!
Thank you!
Hello,
I made a few investigations and seems some browsers does not display the checkbox, also, please make sure you have set correctly the Mailchimp https://docs.woocommerce.com/document/woocommerce-mailchimp/
Also, to display the checkboxes, please use this custom code =>
input[type="checkbox"]{
-webkit-appearance:checkbox!important;
}
This code needs to be set in Theme Panel -> Custom Code -> Custom CSS.
Thank you!
Hi Anamaria,
Thank you for your comments. Please see my responses (with screenshots) below:
1. Post author does not accurately reflect who the post author is on the post or the author’s author page, but the post does link to the correct author. How can this be resolved?
1. Please see screenshots (note) we added the red boxes to conceal our site’s identity) –
1. This is what the author say on the live page for this post: http://paste.pics/E0W9P
2. This is what the author SHOULD say for this post: http://paste.pics/E0WAX
3. EVERY post shows the wrong author on the live version. However, clicking the WRONG author’s name from the live page takes you to the correct author’s page on the site.
2. Author social media links do not show up on the author’s profile. How can this be resolved?
1. Please see screenshot –
1. This is the author page with the author social link element: http://paste.pics/E0WCY
2. This user has a link assigned to the instagram, facebook, linkedin, and twitter parts of their account but they don’t show up on here. How can this be resolved?
3. How do you change the selection background and text color? The following code, which works on almost every site, doesn’t work:
1. Please see screenshots –
1. Normal text (not selected): http://paste.pics/E0W6B
2. Selected text (by clicking on mouse and dragging cursor over): http://paste.pics/E0W6S
4. How can we make videos (YouTube, etc…) bigger so they automatically take up the same amount of horizontal space as the post text body content?
5. How do we add an underline to our hyperlinks within the post content?
1. This is a pre-made tagdiv template (City on Newspaper theme) and it’s not working . CSS is giving an error – please see screenshot: http://paste.pics/E0W54
Thank you.
Hello!
Please add this CSS code in Newspaper -> Theme panel -> Custom code -> Custom CSS:
.tdb_category_description li {
font-size: 25px;
line-height: 2;
}
Thank you!
Maybe I did not explain well. I know how to set up woocommerce for shipping to a different address. In fact, even mailchimp opt-in checkbox is not shown in che checkout page.
As you also suggested, to fix this i need a custom code CSS.
So maybe there is a css class, in the theme files, that hides checkboxes. I found this:
.td-woo-default .td-woo-billing input {-webkit-appearance: none;}
If I disable this style, checkboxes appear. I would like to know if this could be the problem and how to change this style to make checkboxes visible without altering all the woocommerce billing field. Thank you
Hi,
That header should look like this https://i.imgur.com/cinxmuK.png please try this custom css
.td-header-menu-wrap {
margin-top: 48px;
height: 48px!important;
}
Set the code in the theme panel> custom code> custom css.
I hope it will help you!
hello i am trying to use external share button but it showing double on one page what i need tooo do? you can check this page (https://palikatv.com/featured/4010/) i put this button “Bottom of the content” but it is showing 2 place what i need to do ? please suggest me any css code? thank you in advance.
Reading another post on this, it seems not possible. But why then does the Style 3 image (and Styles 7 & 8) show white title on blue background? Did someone forget to actually write the software to turn post title white in this case?
Is there a CSS you could provide that I could add to make 3, 7 & 8 work as they should?
Thanks
MG
Did the Problem get solved? I got the same Problem… just stumbled upon and i can’t get it to work. Activated Modal Images, cleared Cache, checked custom css… it only works manually at the moment.
<IfModule mod_headers.c>
<FilesMatch “\.(eot|font.css|otf|ttc|ttf|woff)$”>
Header set Access-Control-Allow-Origin “*”
</FilesMatch>
</IfModule>
<IfModule mod_mime.c>
# Web fonts
AddType application/font-woff woff
AddType application/vnd.ms-fontobject eot
# Browsers usually ignore the font MIME types and sniff the content,
# however, Chrome shows a warning if other MIME types are used for the
# following fonts.
AddType application/x-font-ttf ttc ttf
AddType font/opentype otf
# Make SVGZ fonts work on iPad:
# https://twitter.com/FontSquirrel/status/14855840545
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</IfModule>
This seems to have worked for me
Thank you so much
-
This reply was modified 4 years by
Wide Writer.
Running lighthouse mobile I am getting: “Links do not have descriptive text”
Image Of Error: https://snipboard.io/6Ok8xC.jpg
I have located it to the “Read More” under Flex Block 5 > Layout > Button
Image in Composer: https://snipboard.io/Gr4WKw.jpg
I have selected HIDE but I guess the code is still there just hidden via CSS. The question is does anyone know how to remove it completely? I am using TD Library for Mobile pages.
I have the same issue as soon as I generate the Critical CSS with the TagDiv Critical CSS generator: https://wlan.net/wlan-antennen-im-vergleich-ueberall-im-haus-schnelles-internet/
When I remove the Critical CSS, all is back to normal. I select all files except for 2 admin files for the CSS to generate, but that does not fix the icons.
Any idea how to fix this issue?
Thanks!
Hello,
Please use this custom code -> https://i.imgur.com/uWHM26w.png
.wp-block-image .aligncenter>figcaption {
display: block;
}
The code needs to be set in Theme Panel> Mobile Theme > Custom code> CSS.
Thank you!
I solve the problem temporarily by hide with css.
.single-post .id_inline_ad2 {display:none;}
But this is not a good solution.
Hello,
The blue space is the background set on the header logo, to remove it please edit with tagDiv Composer, select the logo and in the tab called “CSS” you can remove the background color and color overlay => https://i.imgur.com/iGEUbY4.png
Thank you!
I’m having a problem removing this logo.
I’ve encircled it with a red box. https://imgur.com/1c5quE9
I’ve narrowed down the problem, it is between CSS Lines 19 – 25
But I don’t want to mess with the codes. Which CSS line of the code needs to be deleted for this image to disappear?
Hi Mark Gilbert, according to this screenshot from a MacBook pro that I got from one of my colleague https://i.imgur.com/jZ0TDJh.png yes, on that mac per Firefox look good. So I still think that has something to do with the resolution, but maybe the browsers are also interfering different the css that it’s use to adjust the columns.
We’ll make some more checks on one of our installs, maybe we can find a way to prevent that situation.
Thank you!