- 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
Hye team support,
May i know, it’s possible to insert custom number (css or image) in front of block 13.
Thanks
Tried custom css to make the top menu appear in mobile devices but failed. Can you please help me out? Here is my website link emperorpost.com
Thanks in advance
The style.css in the Newspaper-child folder in the 8.1 version has the following info.
/*
Theme Name: Newspaper 7 Child theme
Theme URI: http://themeforest.net/user/tagDiv/portfolio
Description: Child theme made by tagDiv
Author: tagDiv
Author URI: http://themeforest.net/user/tagDiv/portfolio
Template: Newspaper
Version: 7.7c
*/
Do I need to change the versions in this file or it should work fine the way it is?
Now I have a new issue, if you scroll down my page https://www.sonycentric.com/ the popular categories footer section is showing green because of that css code from https://forum.tagdiv.com/topic/how-to-change-title-background-colour-in-widget-sidebar/ .
Normally to do an if/then for a specific ‘page’ in WP, you use the post ID. When you create a page it has an ‘ID’ in the dbase. (You can find that by hovering over the edit button/link in the all pages menu in WP.)
Then your conditional could be setup as along the lines of
if id = contactpageid# then print the css.
🙂
tables are not responsive, generally in modern HTML, and this is why CSS columns more commonly used.
Also, you should never use inline styles within HTML anymore; but only use CSS classes.
So create a table class and apply the class to the table.
To make table cells psuedo-responsive, you would need to create classes for each td
like td33 for a 3 column table
.td33{width:33%}
For what YOU appear to be doing, you’d be better off using floats, or simple centered text div with CSS span on each item for custom per item elements.
Outside scope of theme, but you can find many tutorials online.
I don’t work here, but have suffered this issue myself 🙂
Hello Tagdiv Team,
The following codes (see below) were added to the theme’s function.php. They don’t work.
Would you please advise if the codings below are incorrect or is there another alternative to removing the style and javascript for Contact Form 7 and JS Composer. Also the Newspaper/js/tagdiv_theme.min.js. They are slowing down the website speed.
CONTACT FORM 7
Both pages are using the default template. Visual composer was used to create the submit-an-event page, but not the ‘contact’ form.
// Deregister Contact Form 7 styles
add_action( ‘wp_print_styles’, ‘aa_deregister_styles’, 100 );
function aa_deregister_styles() {
if (is_page( array( ‘contact’, ‘submit-an-event’ ) ); {
wp_deregister_style( ‘contact-form-7’ );
}
}
// Deregister Contact Form 7 JavaScript files on all pages without a form
add_action( ‘wp_print_scripts’, ‘aa_deregister_javascript’, 100 );
function aa_deregister_javascript() {
if (is_page( array( ‘contact’, ‘submit-an-event’ ) ); {
wp_deregister_script( ‘contact-form-7’ );
}
}
add_action( ‘wp_print_styles’, ‘aa_deregister_styles’, 10 );
function aa_deregister_styles()
{
$td_use_page_builder = false;
if (method_exists(‘WPBMap’, ‘getShortCodes’)) {
$td_use_page_builder = true;
}
if ($td_use_page_builder == true) {
wp_deregister_style(‘js_composer_front’);
wp_deregister_script(‘js_composer_front’);
}
}
Below is are sample results from the web page speed test.
Defer parsing of JavaScript
https://abc.com/wp-content/themes/Newspaper/Newspaper/js/tagdiv_theme.min.js?ver=8.1 (171.7KiB)
https://abc.com/wp-includes/js/jquery/jquery.js?ver=1.12.4 (87.0KiB)
https://abc.com/ (22.2KiB of inline JavaScript)
https://abc.com/wp-content/plugins/js_composer/assets/js/dist/js_composer_front.min.js?ver=5.2.1 (15.5KiB)
https://abc.com/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=4.9 (7.9KiB)
https://abc.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1 (7.7KiB)
https://abc.com/wp-includes/js/wp-embed.min.js?ver=4.8.1 (1.2KiB)
https://abc.com/wp-includes/js/comment-reply.min.js?ver=4.8.1 (918B)
Remove query strings from static resources
https://abc.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=4.9
https://abc.com/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=4.9
https://abc.com/wp-content/plugins/js_composer/assets/css/js_composer.min.css?ver=5.2.1
https://abc.com/wp-content/plugins/js_composer/assets/js/dist/js_composer_front.min.js?ver=5.2.1
https://abc.com/wp-content/themes/Newspaper/Newspaper/images/icons/newspaper-icons.woff?1
https://abc.com/wp-content/themes/Newspaper/Newspaper/images/icons/newspaper.woff?14
https://abc.com/wp-content/themes/Newspaper/Newspaper/js/tagdiv_theme.min.js?ver=8.1
https://abc.com/wp-content/themes/Newspaper/Newspaper/style.css?ver=8.1
https://abc.com/wp-includes/js/comment-reply.min.js?ver=4.8.1
https://abc.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1
https://abc.com/wp-includes/js/jquery/jquery.js?ver=1.12.4
https://abc.com/wp-includes/js/wp-embed.min.js?ver=4.8.1
https://abc.com/wp-includes/js/wp-emoji-release.min.js?ver=4.8.
Thank you very much.
Nik
Hello,
I have the same question. No problem adding the codes below to the newspaper’s functions.php file to disable the Contact Form 7 JS and CSS loading on all pages
add_filter( ‘wpcf7_load_js’, ‘__return_false’ );
add_filter( ‘wpcf7_load_css’, ‘__return_false’ );
The only issue is activating the JS and CSS in specific contact page. There’s no ‘contact.php’ template file in Newspaper Theme. Is there a specific php template I can insert the following code before wp_head is called?
<?php
if ( function_exists( ‘wpcf7_enqueue_scripts’ ) ) {
wpcf7_enqueue_scripts();
}
if ( function_exists( ‘wpcf7_enqueue_styles’ ) ) {
wpcf7_enqueue_styles();
}
?>
Contact Form 7 instructions
https://contactform7.com/loading-javascript-and-stylesheet-only-when-it-is-necessary/
Appreciate your suggestions.
Thanks,
Nik
Might be the 4000 lines of style code you have in your head BEFORE the og tags. I’ve never seen this before, and not good idea.
Ideally only critical ‘above the fold’ content should be inline in the head, and full css loaded from the footer; and normally the meta data should be BEFORE the inline CSS/js
1.7MB page load, took 16 seconds — which is awful — you should be shooting for max 3 seconds, 1.6 would be better. 189 element requests on page is way too many. 50 max would be ideal, 100 max also suggested. See:
I messed up my css file to fix that, and it was there, soft-coded. Oh well!
Thanks alot!
Now I have a new issue, if you scroll down my page https://www.sonycentric.com/ the popular categories footer section is showing green because of that css code.
On a slow connection you will get ‘flash’ of layout, as your background likely being scaled (not big enough), or is a tile so has to draw that before the overlay of the content.
Try
a) disable lazy load animation effect
b) try solid color background in place of backing image
c) for backing image, try enlarging the jpeg manually to ‘giant size’ image, but with high compression (e.g., quality of 10 with blur of .03 in Photoshop)
I have 100mbt connection and that is the only effect being seen here in Win10/Chrome, and why what you’re seeing is not browser specific — but “content specific.”
It’s a version of “flash of unstyled text….” (FOUT).
You can also minimize such effects by taking any custom CSS from the custom code box, and also placing at bottom of your style.css file.
Is possible to have a floating hamburger menu in a mobile version like this picture?:
http://s2.subirimagenes.com/otros/previo/thump_9789768floatinghamburger.jpg
What is the css code for a mobile version?
And for the AMP?
Thanks!!
Okay, forgive me. Just saw another thread concerning CSS and Mobile.
So I’ve entered the following but no change.
@media (max-width: 767px){
.td-post-title h1{
font-size: 12px !important;
}
}
Regardless of that, I’d still like to know if it’s possible to hide the post title.
Thanks
Hi,
here they are the page content: https://pastebin.com/G44FJ4gy
The original page is https://www.beart.fr/ (but I added the fix into style.css from my child theme)
-
This reply was modified 9 years by
lucie_barragan.
Hi,
Both elements are displaying the same source image, this one
– http://thecarindia.com/wp-content/uploads/2017/08/formula-e-race-car.jpg
There does not seem to be any CSS on the images that would affect image quality. The difference might come from the implementation of the image.
The Visual composer element is setting the image as a background
– https://www.screencast.com/t/MSMbGyh1Z
While the theme creates thumbnails from the featured image
– https://forum.tagdiv.com/theme-thumbs/
I believe that is why there is a difference between the images, they are implemented differently in the grid versus block.
Thanks
Hi Simion C.
Great!!! it’s Works!!
One question more… is the same css code form AMP?
Tanks in advanced!!
THanks a lot!
Is there a way to find the right classes, so I don’t have to answer on the forum for each CSS edit?
Hi,
Please enter this code in Theme panel->Custom CSS section, and the scroll icon will be displayed
@media (max-width: 767px) {
.td-scroll-up {
display: block;
}}
Thanks
Dear,
I would like to report a minor css issue with screen upper 1019px when using stretch row and td_bloc_grid_X

As you can see blewo on the right of picture, A part of title article are hided by their featured images

if I had the css rule :
@media (min-width: 1019px) {
.td_module_6 .item-details {
margin-left: 216px;
min-height: 70px;
}
}
Picture and title are displayed correctly

Thanks for your works
Have a nice day
Hi,
The background color for the Social counter widget, can be customized in the widgets section
– https://www.screencast.com/t/cD1egW6oMB
Check the sidebar you are using for the post, and make the modification to the background color in the Social counter widget inside the sidebar.
For the categories widget you can try a code like this and set a similar color as on the homepage
– https://www.screencast.com/t/esns6zfryB
Enter the code in Theme panel->Custom CSS section
.widget_categories .block-title span {
background-color: #c3cf2e;
}
.widget_categories .block-title {
border-color: #c3cf2e;
}
Thanks
Hi,
Please check your email, my colleague has replied in matters concerning your website header and menu. The menu seems to look as you wanted.
3. For the moment the tagDiv composer does not have this kind of element. This might chnage in future updates, and more elements and options will be added to this editor.
4. There are multiple way you could do that. Use a single image element and stretch the row and content for example. The result will be a full width image.
5. The category tags color can be changed but only for the post page, for each category.
– https://www.screencast.com/t/nRF4bJd8N
On pages that could be achieved with custom CSS code.
Thanks
Hi,
There is a flash noticeable, before the page fully loads. The default background color for the header is overwritten by the custom colors that are set. CSS works in cascade, first it will apply the default color, and then the other one. If this requires a few moments, this is more noticeable.
In this case you could try to remove any color you set in the theme panel or by any other means, and modify the background color in the theme stylesheet directly
– https://www.screencast.com/t/Y4XYn8EOvDdD
Thanks
I see. I only found style 8 template that uses featured image as background, so is that the only way?
What about a CSS style override? Like setting background image to none on all single posts? Or using a color layer on top of the image or something?
I found this css class, but the changes I’m trying to make don’t work – what am I doing wrong here (is it wrong class, should I do something else instead):
img.td-backstretch.not-parallax.td-stretch-width {
background-image: none!important;
background-color: #222!important;
}
Hi,
The css provided only hides the comments counter on modules, on specific category – https://www.screencast.com/t/I6uxNrMaFJR
You can adjust and apply it on each category page.
Thanks!