Search Results for 'css'

Results from the Forum
Andrei L.
tagDiv Member

Hi

To apply a different style on mobile devices you can use media queries like this:

@media (max-width: 768px){
.css-class-of-the-element{
color:red
}
}

This is just a basic example but works like this: for screens smaller then 768px apply a red color for the element with this css class: .css-class-of-the-element. You have to replace this expression with the real selector of the element of which’s style you want to change.
Note that this is a complex task which require good css coding skills and many tests in order to be accomplished. If you still need guidance on this or you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you as we can’t offer customization services at the moment.

Thanks!

Sylvester77
Participant
#0

Hello guys, just bought you Theme and really like it.
But like always for beginners I need some support.

I have some minor issues in the homepage http://www.urban.dog/urbandog/

1. Ad is showing not in the same height as block next to it
How can I optimize the height. Ad should be shown at same height as content and the Tag “Advertisment above”
http://www.screencast.com/t/fmefOPnXTBvh

2. I´ve set a block content and try to set a border, but the border is not shown. How can i set the border?
Is like that: http://www.screencast.com/t/SubMELexY
And should be like that: http://www.screencast.com/t/wekMFMJx

3. Space between Title Block and Big Grid Block
I´ve set a extra Title Block as you can not set Title with big grid blocks but now the space is bigger than on normal blocks with Title. How can i change a smaller space, so it should look the same as other blocks?
See here: http://www.screencast.com/t/S2ZCdj1g

4. DARK Theme works but need customs CSS for sidebar black fonts
I´ve changed some css so have a dark theme but on post pages I want to keep the template white, the issue is the sidebar copy is also white. How can i change it to black for the post pages?
See here: http://www.screencast.com/t/aVJeaKuzZq
The CCS I´ve added with help of the forum here:
.td-footer-wrapper, .td-banner-wrap-full, .td-main-content-wrap,
.td-main-page-wrap, .td-category-grid, .td-category-header {
background-color: #141414;
}
.entry-title a,
textarea
{
color: white !important;
}

Thank you

Catalin
tagDiv Staff

Hello

Please try the code below and add it in Theme panel->Custom CSS area.

The code is ->

.td-header-sp-recs img {
left: 28px;
}

The result -> http://screencast.com/t/v7vsXsBr

Hope this helps!

Thank you for the message!

Catalin
tagDiv Staff

Hello masc,

If you want to disable those arrows from the main menu, you have to use a bit of CSS code to hide it. Please try the code below and add it in Theme panel->Custom CSS area.

The code is ->

.td-icon-menu-down {
display:none;
}
.sf-menu a.sf-with-ul {
padding-right: 20px;
}

Hope this helps!

Thank you for the message!

Catalin
tagDiv Staff

Hello dizajn,

I suppose that you are referring to the modules (title posts and excerpts). If you want to add CSS code to affect these fields you have to use the correct classes like -> .td-excerpt, .td-module-title and then your code.

The code is ->

.td-excerpt, .td-module-title {
hyphens:auto;
text-align:justify;
-webkit-hyphens:auto;
-moz-hyphens:auto;
-epub-hyphens:auto;
}

The result -> http://screencast.com/t/MfvgwzxsbBQ

Hope this helps!

If is not what you mean, please provide more details about your desired changes so I will be able to provide a more accurate response.

Thank you for the message!

Andrei L.
tagDiv Member

Hi

The theme code was tested and optimized for best performance, we have a lot of clients and the theme works well on a large variety of hosts.
First please make sure that you use the recommended server configuration for Newspaper theme, you can check our documentation for more details: https://forum.tagdiv.com/newsmag-requirements-for-newsmag/
There are lots of factors that influence the site’s page-sped. I suggest you first try this without any other plugins active, leave just VC plugin active the check again. To improve the loading speed look the mysql query cache: http://dev.mysql.com/doc/refman/5.1/en/query-cache.html we also use it on our demo.
Also you can use the speed booster to move the js and css at the bottom of the page, eliminate render-blocking, but not for all plugins. Check the System Status if the speed booster is active if you use other plugins than the tested ones. You can find some useful information regrading speed booster usage in this topic: https://forum.tagdiv.com/topic/speed-booster-questions/
Also you can read this guide, it may help – https://forum.tagdiv.com/how-to-make-the-site-faster/

Hope this help.
Thanks!

barelliluca
tagDiv Member

Hi Bogdan,

sorry for the late reply.
You’re right! I completely missed the CSS concatenation rules of thumb…
Thank you for pointing me to that chrome ext. I’ve been using manual CSS changes via debug mainly to spot “where is what”, but it’s a pain for editing.
About Cloudflare, I’m using minification plus whatever defer/async rules Rocket Loader uses. This is just a temporary (hopefully) solution, since I’ve got no time to setup these manually at the moment.
Thank you again for your help; tagDiv support always rocks!
Wish you a nice day,

– Luca

srikanth
Participant
#0

hi

we want different navigation for each device can u help us with the css for the navigation buttons on the attachment.php

example page http://www.tollywoodfans.in/44974/regina-cassandra-photos-at-shourya-promotional-event/regina-cassandra-photos-2-14/

This is defined for desktop for now ..

simchris
tagDiv Member

As a heads up to anybody moving to get AMP setup ..
the one major bugaboo seems to be Google not liking the obviously bad method WP has used for centered text all these years (which should have been a CSS class).

FYI, all the
<p align="center">Centered Text</p>

is going to show as an error in AMP validation (!).

Seems like a good time to remember how to do a search/replace via MySQL for the WP post meta.

( DOH ! )

If you prefer a plugin to do this — keeping in mind you BETTER make a backup of your MYSQL DBASE *first*, then this seems popular and recommended:
https://wordpress.org/plugins/better-search-replace/

Obviously making a class for centered text like

.centerboy {text-align: center;}

goal would be search replace to end up with

<p class="centerboy">Centered Text</p>

  • This reply was modified 10 years by simchris.
  • This reply was modified 10 years by simchris.
  • This reply was modified 10 years by simchris.
rea-secret
tagDiv Member

Hi Bogdan,

I made the changes that you suggest. And I made changes at step 5 on that this page. I allowed all plugins for speed booster, I added $this->move_js_to_footer(‘ID’) and $this->move_style_to_footer_queue(‘ID’); codes for moving js and css files to bottom. Now I have blank pages. I can’t see any pages. All blank. So I deactivated Speed booster. Is there another way to move js and css files to bottom? Thanks.

chrisuk73
Participant
#0

The content on my sidebar is slightly dropped compared to other sites, not badly but a few cm.
How can I move it up so that it is level with the post title or breadcrumb?

http://www.screencast.com/t/iY17562BXt
live version : http://www.gloholiday.com/top-budget-nasugbu-batangas-beach-resorts/

Its not a rogue widget as I tried moved them around. Is there some custom CSS to shift it up?

Thankyou
Chris

Sylvester77
tagDiv Member

Hi guys, i searched this forum and made try and fail, it looks almost cool, but need some more custom css.
This is what I´ve insert:
.td-footer-wrapper, .td-banner-wrap-full, .td-main-content-wrap,
.td-main-page-wrap, .td-category-grid, .td-category-header {
background-color: #141414;
}
.entry-title a,
textarea
{
color: white !important;
}

How can I Change:
1. The Category Header Color: http://www.urban.dog/category/du-und-dein-hund/
2. Sidbar Widgets Color on Post Pages: http://www.urban.dog/du-und-dein-hund/anschaffung/falls-du-ueberlegst-ob-es-ein-mix-oder-ein-rassehund-werden-soll/ as it is white now

Appreciate your support

franko
Participant
Logo - topic
#0

Hello,
I have a problem with my logo and advertisement.
The advertisement needs to be smaller and it doesn’t take the custom sizes but it takes always the auto.My site is :http://185.38.193.58/rd/

Logo also seems to be a little to the right:with some custom css iI put it to the left and when it loads it goes to the right and back to its place.any suggestion?

thelastpoet
tagDiv Member

Thanks Bogdan, So this means the Chaki guys did a lot of CSS customization because their website is also Newpaper theme

firetoss
tagDiv Member

This fixed it

Header.php
<div class=”td-container”>
<?php wp_nav_menu( array( ‘theme_location’ => ‘sub-menu’, ‘container_class’ => ‘nav_sub’ ) ); ?>
</div>

Functions.php
// Add Sub Menu
function register_my_menu() {
register_nav_menu(‘sub-menu’,__( ‘Sub Menu’ ));
}
add_action( ‘init’, ‘register_my_menu’ );

Custom CSS
.td-container .nav_sub ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #fff;
}

.td-container .nav_sub li {
float: left;
margin-left: 0;
}

.td-container .nav_sub li a {
display: inline-block;
color: #666;
text-align: center;
padding: 13px 13px;
text-decoration: none;
}

.td-container .nav_sub li a:hover {
background-color: #d9d9d9;
}

Sylvester77
Participant
#0

Hello Guys just bought your Theme. LOVE it.
Just need some help how can I change the Theme to DARK Layout? Custom CSS? If yes what I need to enter?

Her´r my site: http://www.urban.dog/urbandog/

Thank you

dwcp
tagDiv Member

Thanks for the reply and the CSS.

I understand that the Whatsapp icon will only show when viewing on mobile devices, and it is appearing on my website, however, the drawing of the whatsapp icon seems to be missing, please see screenshot below:

https://www.dropbox.com/s/zk1pmkyycipaat8/Screenshot_2016-03-03-23-37-33~2.png?dl=0

Sorry if I didn’t describe it accurately above.

dizajn
tagDiv Member

Uploaded default functions.php and is ok.

Think you can assist me with following css code:

p {
hyphens:auto;
text-align:justify;
-webkit-hyphens:auto;
-moz-hyphens:auto;
-epub-hyphens:auto;
}

So i’d insert it into custom css tab and would apply to all articles? Now i must apply it to every article css fild on visual composer.

Thanks

Bogdan B.
tagDiv Staff

Hi,

You can use this css to center it:

@media (max-width: 767px){
.td-header-style-8 .td-header-top-menu {
display: block!important;
width: 116px!important;
margin-left: auto!important;
margin-right: auto!important;
}
}

Thank you!

adibiase
Participant
#0

Hi, on the iphones the theme is correctly responsive except the ads when I use the td-visible-phone class. From the CSS I see the class is checking the resolution via @media (max-width: 767px), which does not fit the retina resolution.

The need is this: on mobiles (included iphones) I want to show 300×200 banners. On desktop I want to show a strip, a leaderboard.

Which is the right solution you suggest?

Catalin
tagDiv Staff

Hello dwcp,

Please notice that the Whatsup icons are showed only for mobile devices. I suppose that you want to display it for other devices, you have to use a bit of CSS.

The code is ->

@media (min-width: 787px){
.td-social-whatsapp {
display: inline-block !important;
}

The result -> http://screencast.com/t/aNJhnBHOSB

If is not what you mean, please provide more details about your problem so I will be able to provide a more accurate response.

Thank you!

Bogdan B.
tagDiv Staff

Hello,
Unfortunately there is no way to disable it from the theme panel, but you can hide it with css if you want:
.td-category-pulldown-filter{
display:none!important;
}

Thanks.

Catalin
tagDiv Staff

Hello Matija,

1) Try the code below.

.home .vc_custom_1456965369951 {
height:483px!important;
}

The result -> http://screencast.com/t/FPO7f5TyAcL

2) The code is ->

.td-pb-row [class*="td-pb-span"] {
padding-right: 0px;
padding-left: 0px;
}

The result -> http://screencast.com/t/UUcF1qahmsx4

3) Please try the code below and add it in Theme panel->Custom CSS area.

The code is ->

.sf-menu ul .td-menu-item > a:hover, .sf-menu ul .sfHover > a, .sf-menu ul .current-menu-ancestor > a, .sf-menu ul .current-category-ancestor > a, .sf-menu ul .current-menu-item > a {
color: red;
}

The result -> http://screencast.com/t/f6yVkX7g4RL

Hope this helps!

If is not what you mean, please provide more details about your desired changes so I will be able to provide a more accurate response.

Thank you for the message!

Bogdan B.
tagDiv Staff

Hello,
M15 does not have a read more button, but M14 does. I tested this on my end but the theme color (in my case purple) is set to the read more button as well: http://screencast.com/t/6GVe8aWMr
Please try to disable all your plugins except visual composer, clear cache and reset cdn if you use it as sometimes plugins can interfere with the css.
Let us know how it goes.
Thank you!

Catalin
tagDiv Staff

Hello St,

Please notice that the background image it is always there but when you shrink the screen up to our fix width 1068 px. Also, please notice that the principal container has always the white color and the background-image no longer notice. In this case, you have to use a bit of CSS code to do it transparent using the code below.

The code is ->

.td-main-content-wrap, .td-category-grid {
background-color: transparent;
}

The result you should see here -> http://screencast.com/t/kYBslXgf

Thank you for the message!

Viewing 25 results - 23,951 through 23,975 (of 33,436 total)