Search Results for 'css'

Results from the Forum
Calin
tagDiv Staff

Hi,

As I can see you are using the html code as in this guide -> https://www.w3schools.com/tags/tag_img.asp if this is causing CLS then I do not know other way to set an image, maybe only if you set it as a background image -> https://www.w3schools.com/cssref/pr_background-image.asp but I do not thing this will work
I will make some more investigation for this problem.

Thank you!

steveroberts
Participant
#0

Hello,

I’ve been very frustrated in trying to format blockquotes within Newsmag.

https://www.schillingshow.com/2012/03/21/fraud-misfeasance-and-cover-up-special-prosecutor-investigates-charlottesville-spokesman-barrick/

Live CSS does not seem to fully work when editing blockquotes.

I’d like an easy way to align left, full width, change color, indent, line spacing, etc.

Can you please advise?

SR

Calin
tagDiv Staff

Hi,

If you do not want to make other changes, only the accent color for menu, then the easy way is to use a custom css -> https://i.imgur.com/rtVBqNT.png
.td-blog-baby .td-header-style-11 .sf-menu > .current-menu-item > a, .td-blog-baby .td-header-style-11 .sf-menu > li > a:hover {
color: red;
}

The code need to be set in theme panel> custom code> custom css.

Also if you want you can use a cloud header from tagDiv Cloud Library, this can be edited with tagDiv Composer and you can achieve almost everything.

Thank you!

Calin
tagDiv Staff

Hi,

1. Unfortunately, there is no option in theme to reduce the space above and under logo, but you can achieve this using a custom css like this one -> https://i.imgur.com/zwkvErt.png
.td-header-container.td-header-wrap .td-header-header{
height: 90px;
}
.td-header-sp-logo .td-logo{
height: 60px;
}

This code need to be set in theme panel> custom code> custom css.

2. Also for menu the only settings that Newsmag theme has are these from theme panel -> https://i.imgur.com/Kv8wxEL.png unfortunately for what you need you must use a custom css like this one -> https://i.imgur.com/JG4Q5rI.png
.sf-menu > .current-menu-item > a, .sf-menu > .current-menu-ancestor > a, .sf-menu > .current-category-ancestor > a, .sf-menu > li > a:hover, .sf-menu > .sfHover > a {
background-color: transparent;
color: #fff;
z-index: 999;
}

Thank you!

Vlad S
tagDiv Staff

Hello !

That can be done using tagDiv Composer and set the ROW’s CSS. Follow our guide here where you can see how to change the spacing using CSS: https://www.youtube.com/watch?v=fa7GenCHcBU

Thank you !

inqusitive-stha
Participant
#0

Hello support team,

My website is https://www.noobietech.com . My site score is very poor on GTMetrix. Any suggestions on how can I improve it?

I am using the wp-rocket cache plugin and CloudFront CDN at the moment.

Currently, my .htaccess looks like:

`
# BEGIN WP Rocket v3.6.2.1
# Use UTF-8 encoding for anything served text/plain or text/html
AddDefaultCharset UTF-8
# Force UTF-8 for a number of file formats
<IfModule mod_mime.c>
AddCharset UTF-8 .atom .css .js .json .rss .vtt .xml
</IfModule>
# FileETag None is not enough for every server.
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
# Since we’re sending far-future expires, we don’t need ETags for static content.
# developer.yahoo.com/performance/rules.html#etags
FileETag None
# Send CORS headers if browsers request them; enabled by default for images.
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
# mod_headers, y u no match by Content-Type?!
<FilesMatch “\.(cur|gif|png|jpe?g|svgz?|ico|webp)$”>
SetEnvIf Origin “:” IS_CORS
Header set Access-Control-Allow-Origin “*” env=IS_CORS
</FilesMatch>
</IfModule>
</IfModule>
# Allow access to web fonts from all domains.
<FilesMatch “\.(eot|otf|tt[cf]|woff2?)$”>
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin “*”
</IfModule>
</FilesMatch>
<IfModule mod_alias.c>
<FilesMatch “\.(html|htm|rtf|rtx|txt|xsd|xsl|xml)$”>
<IfModule mod_headers.c>
Header set X-Powered-By “WP Rocket/3.6.2.1”
Header unset Pragma
Header append Cache-Control “public”
Header unset Last-Modified
</IfModule>
</FilesMatch>
<FilesMatch “\.(css|htc|js|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$”>
<IfModule mod_headers.c>
Header unset Pragma
Header append Cache-Control “public”
</IfModule>
</FilesMatch>
</IfModule>
# Expires headers (for better cache control)
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault “access plus 1 month”
# cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
ExpiresByType text/cache-manifest “access plus 0 seconds”
# Your document html
ExpiresByType text/html “access plus 0 seconds”
# Data
ExpiresByType text/xml “access plus 0 seconds”
ExpiresByType application/xml “access plus 0 seconds”
ExpiresByType application/json “access plus 0 seconds”
# Feed
ExpiresByType application/rss+xml “access plus 1 hour”
ExpiresByType application/atom+xml “access plus 1 hour”
# Favicon (cannot be renamed)
ExpiresByType image/x-icon “access plus 1 week”
# Media: images, video, audio
ExpiresByType image/gif “access plus 4 months”
ExpiresByType image/png “access plus 4 months”
ExpiresByType image/jpeg “access plus 4 months”
ExpiresByType image/webp “access plus 4 months”
ExpiresByType video/ogg “access plus 1 month”
ExpiresByType audio/ogg “access plus 1 month”
ExpiresByType video/mp4 “access plus 1 month”
ExpiresByType video/webm “access plus 1 month”
# HTC files (css3pie)
ExpiresByType text/x-component “access plus 1 month”
# Webfonts
ExpiresByType font/ttf “access plus 4 months”
ExpiresByType font/otf “access plus 4 months”
ExpiresByType font/woff “access plus 4 months”
ExpiresByType font/woff2 “access plus 4 months”
ExpiresByType image/svg+xml “access plus 1 month”
ExpiresByType application/vnd.ms-fontobject “access plus 1 month”
# CSS and JavaScript
ExpiresByType text/css “access plus 1 year”
ExpiresByType application/javascript “access plus 1 year”
</IfModule>
# Gzip compression
<IfModule mod_deflate.c>
# Active compression
SetOutputFilter DEFLATE
# Force deflate for mangled headers
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding “gzip,deflate” env=HAVE_Accept-Encoding
# Don’t compress images and other uncompressible content
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png|rar|zip|exe|flv|mov|wma|mp3|avi|swf|mp?g|mp4|webm|webp|pdf)$ no-gzip dont-vary
</IfModule>
</IfModule>
# Compress all output labeled with one of the following MIME-types
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE application/atom+xml \
application/javascript \
application/json \
application/rss+xml \
application/vnd.ms-fontobject \
application/x-font-ttf \
application/xhtml+xml \
application/xml \
font/opentype \
image/svg+xml \
image/x-icon \
text/css \
text/html \
text/plain \
text/x-component \
text/xml
</IfModule>
<IfModule mod_headers.c>
Header append Vary: Accept-Encoding
</IfModule>
</IfModule>
# END WP Rocket
# BEGIN YOAST REDIRECTS
<IfModule mod_rewrite.c>
RewriteEngine On
Redirect 301 “/how-to-install-laravel-6-on-windows” “/how-to-install-laravel-on-windows”
Redirect 301 “/top-10-best-free-web-hosting” “/best-free-web-hosting-sites”
Redirect 410 “/tdb_templates/review-template-4-gaming”
</IfModule>
# END YOAST REDIRECTS
<FilesMatch “.(eot|otf|ttf|woff|woff2)”>
Header set Access-Control-Allow-Origin “*”
</FilesMatch>
#BEGIN GZIP COMPRESSION
<IfModule mod_deflate.c>
<filesMatch “\.(js|css|html|php)$”>
SetOutputFilter DEFLATE
</filesMatch>
</IfModule>
#END GZIP COMPRESSION
# BEGIN WordPress
# The directives (lines) between <code>BEGIN WordPressandEND WordPress` are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<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
# php — BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php — END cPanel-generated handler, do not edit
# Start CloudFlare:noobietech.com rewrite. Do not Edit
RewriteEngine On
RewriteCond %{HTTP_HOST} ^noobietech.com
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
# End CloudFlare rewrite
`

and functions.php of child theme (I have added some stuff from the internet to make it faster.)

`

// Load Essential Fonts Awesome
add_filter( ‘noobietech_fontawesome_essentials’,’noobietech_fontawesome_essentials’ );
function noobietech_fontawesome_essentials()
{
return true;
}

// Removing Emojis
add_action( ‘init’, ‘noobietech_disable_wp_emojicons’ );
function noobietech_disable_wp_emojicons()
{
// all actions related to emojis
remove_action( ‘admin_print_styles’, ‘print_emoji_styles’ );
remove_action( ‘wp_head’, ‘print_emoji_detection_script’, 7 );
remove_action( ‘admin_print_scripts’, ‘print_emoji_detection_script’ );
remove_action( ‘wp_print_styles’, ‘print_emoji_styles’ );
remove_filter( ‘wp_mail’, ‘wp_staticize_emoji_for_email’ );
remove_filter( ‘the_content_feed’, ‘wp_staticize_emoji’ );
remove_filter( ‘comment_text_rss’, ‘wp_staticize_emoji’ );
}

// Remove WP embed script
function noobietech_stop_loading_wp_embed() {
if (!is_admin()) {
wp_deregister_script(‘wp-embed’);
}
}
add_action(‘init’, ‘noobietech_stop_loading_wp_embed’);

// Preload Newspaper fonts for responsive theme (main theme)
function dns_prefetch_responsive() {

echo “<link href=’https://www.noobietech.com/wp-content/themes/Newspaper/images/icons/newspaper.woff?17&#8242; rel=’preload’ as=’font’ type=’font/woff’ crossorigin>”;
}
add_action( ‘wp_head’, ‘dns_prefetch_responsive’, 0 );

`

ton1985a
tagDiv Member

Please, disconsider the solution that I mentioned earlier. That came with a new problem, that is the blockquote font size will not adjust to mobile, like it does on the default post template.

Any ideas on how can I get the exact same style of blockquotes from Default Post Template to show on Smart List Template 1?

I already tried adding text-size-adjusta: 100%; to the css, but that didn’t work.

Thanks,

ton1985a
tagDiv Member

Update: I used this CSS through Theme Panel > Custom Code, and it worked.

blockquote p {
font-family: ‘Roboto’, sans-serif;
font-size: 32px;
line-height: 40px;
font-weight: 400;
text-transform: uppercase;
color: #4db2ec;
word-wrap: break-word;
}

Thanks,

Topfgartenwelt
tagDiv Member

To get the text-logo in the mobile version in the middle I have added margin-top: 70px; to td-logo-text-wrap and the height in the td-logo-text-wrap to 180px

To get the search-button from left to right: .td-search-icon –> instead right: -3px; change to left: -3px; and add margin-top: 60px; so the search button moves below the toggle or to move the search icon beside the toggle just right: 210px;

To change the font-size of the text-logo and the the tagline –> use theme-panel because the following in the style.css doesn’t work:
.td-main-menu-logo .td-logo-text –> font-size from 24px to 48px
.td-main-menu-logo .td-tagline-text –>padding-top from 2px to 6px and font-size from 9px to 15px

Changes in the themepanel: mobile –> theme-fonts –> header –> text-logo –> size: 34 line hight: 34

Than change the header .entry-title margin-top: 25px and margin-bottom:65px

hamiltond
Participant
#0

With Newspaper Plugins & shortPixel SPAI plugin as the ONLY plugins turned on and all newspaper lazyloading DISABLED – this tag is still added to my CSS.

Additionally, the tag > data-spai=”1″ < doesn’t appear to be controlled by anything in the front-end of the site.

Question: What is this css-selector for? How can I turn it OFF for my header & footer images? It doesn’t appear to cause issues with other parts of the site & images being picked up by shortPixel.

Please let me know what data-spai=”1″ CSS is doing?
What can I do on the front-end to disable it for the header/footer?

Theme: Live Pro.

When data-spai=”1″ is removed from the CSS (Chrome/Firefox dev tools) the header logo and footer logos show up.

Thank you.

hamiltond
tagDiv Member

Hello, I’m responding to this thread because I am having the same issue. The problem FOR ME arises when I am using shortPixel SPAI. I have DISABLED ALL newspaper lazyloading – and this tag is still added to my CSS.

Additionally, the tag > data-spai=”1″ < doesn’t appear to be controlled by anything in the front-end of the site.

Question: What is this css-selector for? How can I turn it OFF for my header & footer images? It doesn’t appear to cause issues with other parts of the site.

Additionally –
FOR me the issue is with Desktop & iPad versions of the logo.
Footer – its all pages.

Please let me know what data-spai=”1″ is doing & what can I do on the front-end to disable it for the header/footer – so they show up.

Theme: Live Pro.

The tag shows up as part of the CSS for the header & footer. When the tag is removed (data-spai=”1″) – the header logo and footer logos show up.

Topfgartenwelt
tagDiv Member

Is there no way do to this in the mobile header.php and in the style.css?

In the style.css –> td-header-wrap –> change height from 60px to what you want 🙂 So I have a bigger size, but how and where in the style.css I can achieve that the text-logo moves to the middle/center of the box?

Greetings Kathrin

Calin
tagDiv Staff

Hi,

The think is that the plugins seems to not be installed because the them is missing a file -> https://i.imgur.com/rNU742Y.jpg -> https://herothemes.com/support/knowledge-base/theme-is-missing-the-style-css-stylesheet/

Or if you want, we can take a look in this problem, it will be better because we can check from where is the problem, please send us an email at contact@tagdiv.com and provide admin login, as well as cPanel and credentials. We will take a look to this problem and we’ll try to fix it. Include a link to this topic in the email.

Thank you for your understanding!

Calin
tagDiv Staff

Hi,

Please try this custom css -> https://i.imgur.com/ywhpaAm.png
.single blockquote.td_quote, .single blockquote.wp-block-quote {
margin: 0 0 29px 0;
background-color: #FCFCFC;
border-left: 2px solid #4db2ec;
padding: 15px 23px 16px 23px;
position: relative;
top: 6px;
clear: both;
}
.single blockquote.td_quote p, .single blockquote.wp-block-quote p{
font-family: 'Open Sans', arial, sans-serif;
color: #777;
font-size: 13px;
line-height: 21px;
margin: 0;
text-transform: none;
}

Also if you want you can use only this one -> https://i.imgur.com/frljd03.png
The code need to be set in theme panel> custom code> custom css.
Hope this will help you better!
Thank you!

Calin
tagDiv Staff

Hi,

For this you’ll need to use a custom css like this one
.td-scroll-up {
display: block;
}

This code need to be set in theme panel> custom code> custom css.

Hope this will help you!
Thank you!

Calin
tagDiv Staff

Hi Amari,

Yes, the code need to be set in theme panel> custom code> custom css and the ads will be set as in my screenshot.

Have a nice weekend!

Calin
tagDiv Staff

Hi,

If the ads are in pages you can edit the page and remove the ads.

If the ads are in widget sidebars in posts and pages, maybe create sidebars without ads and set them.

If the ads are in the post content (top, inline or bottom ad spots) the theme does not have settings for specific posts. All it has are general settings to hide them per device
https://www.screencast.com/t/g6L9YSkB

Hiding them with CSS is permitted by Google when using media queries
https://support.google.com/adsense/answer/6307124?hl=en
Setting a display:none without media queries is forbidden by Google
https://support.google.com/adsense/answer/1354736?hl=en

For header ads you can use two header templates, ( both from tagDiv Cloud library, or only one with out ads ), you need to have set a global header for all pages/post and an individual one on the pages where you do not want to have the ads.
Take the Tour to Explore the New Header Manager -> https://tagdiv.com/newspaper-theme-customize-the-header-manager/

What you can do is to set a single post template from tagDiv Cloud Library with out ads and make a copy of this template and set ads in it for the post were you want to have ads ( the ads in single post template can be set using tagDiv Composer -> https://www.screencast.com/t/dYEh4nIv you can set as many ads you want using the ad box -> https://www.screencast.com/t/IiAlsDAT -> https://www.screencast.com/t/7ua8g3oti).

Maybe use a plugin such as Adrotate to better manage the ads in the website. There are many theme users that recommend this plugin. I believe it has settings for what you have to do per specific posts.
Some more about it here if you should consider it
http://www.wpbeginner.com/plugins/how-to-manage-ads-in-wordpress-with-adrotate-plugin/
https://ajdg.solutions/manuals/adrotate-manuals/

Thank you!

Calin
tagDiv Staff

Hi,

I think that you can use a custom css like this one -> https://i.imgur.com/GeaQF6x.png
.vc_raw_html .td-fix-index img{
padding-top:5px;
display: inline-block;
position: relative;
top: 3px;
}

If you want, you can adjust it, also the code need to be set in them panel> custom code. custom css.

Thank you!

Calin
tagDiv Staff

Hi CountryCaller,

Unfortunately, using Newsmag theme, for the moment the buttons for “Read more” can be remove only with custom css.
If you want you can use this custom css -> https://i.imgur.com/kOHEgtH.png
.td_block_12 .td-read-more {
display: none;
}

This code need to be set in theme panel> custom code> custom css.

Thank you for your understanding!

Amari
tagDiv Member

Yup, so the ads start under the header. Do I just post that into custom css?

Divvie
Participant
#0

I have an issue where the transition wipe was turned off, and since yesterday started showing again.
Please see the image (https://i.imgur.com/jVLWQXY.jpg) to understand more.
At the moment – I have it turned of via CSS.
Could you please let me know how to turn off completely / via theme settings.
Divvie

dievoaxe006
tagDiv Member

I have applied your settings now images look fine. but when I use to upload via tecdiv composer and using css option and upload bg pic the pic not showing on the website page. I have to upload thru the theme panel( has to go in that category then upload pic). but when I upload pic both places then first it will show pic, which I upload via theme panel then css pic will overlap. I didn’t get why this is happening.

and another problem is that :
https://scrollmyblog.com/lifestyle/the-2020-grammy-nominations-are-really-trying-to-be-relevant-2/
this blog image comes perfectly in every frame of the theme. either is small or big or medium. this image was in the theme.
now see this: https://scrollmyblog.com/lifestyle/beauty/liquid-neutrogena-facewash-cleanser/
this blog image cut more than 30%n 50% in different frames. when you scroll down you can see yourself . home page in a small frame. it almost cut by 80%.

please solve this issue.

Calin
tagDiv Staff

Hi,

You are probably uploading the whole theme package. You have to upload only the theme zip file, not the whole package which contains other items
https://help.market.envato.com/hc/en-us/articles/202821510-Theme-is-missing-the-style-css-stylesheet-error

Let me know the results!
Thank you!

CountryCaller
Participant
#0

Is there an option in the theme setting to remove this without CSS?
Image reference: https://prnt.sc/tn2l4h

Calin
tagDiv Staff

Hi chotaweb,

If you are using cloud template or pro demos (these are made only with cloud templates), these can be edited only with tagDiv Composer, the settings from theme panel will not affect theme.
https://i.imgur.com/8ojZ6ky.jpg -> https://i.imgur.com/ygtOSDE.jpg
Also the background image from header can be change only with tagDiv Composer, you need to click on the row and chcek the css tab -> https://i.imgur.com/8Be7CCp.jpg

Thank you!

Viewing 25 results - 7,251 through 7,275 (of 33,436 total)