Search Results for 'css'

Results from the Forum
Lucian
tagDiv Staff

Hi,

Use this CSS, add it in Theme panel -> Custom CSS:

@media (max-width: 767px) {
  .affix {
   position: relative !important;
  }
}

Thanks

Lucian
tagDiv Staff

Hi,

You have to add this code http://pastebin.com/ecY7aQ50 to the single.php file like this: http://screencast.com/t/KVO2deGrh

Comment this section from loop-single.php file like this: http://screencast.com/t/8PMBsVFH
And add this custom CSS in Theme Panel -> Custom CSS:

.post header {
top: 0px !important;
}

Thank you

  • This reply was modified 12 years by Lucian.
  • This reply was modified 12 years by Lucian.
Lucian
tagDiv Staff

Hi,

1. Please change the H4 tag from page-homepage-loop.php file into a H1 tag like this: http://screencast.com/t/l2VjiJai
Then you can use the custom CSS that you mentioned above.

2. On our Demo all post titles from widgets are by default with h3 tags http://screencast.com/t/zmE38SHD6K5z

Thank you

boruxk
tagDiv Member

tss,
its realy simple hack here you have:

open the wp-content/themes/Newspaper/style.css

search for following class


.affix {
  left: 0;
  right: 0;
  top: 0px;
  height: 48px;
  z-index: 9999;
  position: fixed !important;
}

and replace it with this

@media (max-width: 767px) {
.affix {
  left: 0;
  right: 0;
  top: 0px;
  height: 48px;
  z-index: 9999;

}
  }

@media (min-width: 768px) {
.affix {
  left: 0;
  right: 0;
  top: 0px;
  height: 48px;
  z-index: 9999;
  position: fixed !important;
}
  }

yua welcome))

  • This reply was modified 12 years by boruxk.
Lucian
tagDiv Staff

Hi,

To reformat it so it takes up less space add this custom CSS:

.td-review {
margin-top: 0px !important;
margin-bottom: 10px;
}
.td-review-row-bars .td-review-desc {
padding-top: 0px !important;
}
.td-rating-bar-wrap {
margin-bottom: 0px !important;
}
.td_review_with_bars {
display: none;
}

..in Theme Panel -> Custom CSS

If you want you can look for CSS Tutorials on Google there are plenty of free courses.
Ex. http://www.w3schools.com/css/DEFAULT.asp

Thank you

Steven
tagDiv Member

@nihar105479 here is things you need to fix,and you can find in my sticky post help to fix some of them.

1.Remove query strings from static resources >>> there is help in my sticky post to fix that.

2.Optimize images >>>> get the plugin EWWW Image Optimizer over at wordpress to fix that issue.

3.Inline small CSS >>> Use cloudflare and they will fix that for you and a lot more.https://www.cloudflare.com

4.Minify JavaScript and CSS >>> Use cloudflare and they will fix that for you and a lot more.https://www.cloudflare.com

5.Use cookie-free domains >>> Use cloudflare and they will fix that for you and a lot more.https://www.cloudflare.com

I keep telling users use cloudflare to help better Optimize there site,if they take my tips and put them in action there site be fast and score better..there is a lot of tips on this site use them and you will see performance.

Lucian
tagDiv Staff

Hi,

You can add this button next to the social sharing buttons by adding a code
to the td_module_blog.php file like this:

http://screencast.com/t/BpyIu2DzQni

You will then need to customize it to actually call up and email dialogue box or an email client when clicked, unfortunately this needs custom work and we don’t have time to do custom work, if you don’t know how to do it you can hire an professional developer.

After you added the button you can add this CSS in Teheme Panel -> Custom CSS to style it:


.td-sp-share-email {
width: 31px;
height: 31px;
background-position: -20px -1632px;
background-image: url('http://192.168.1.70/wp_demo_009/4/wp-

content/themes/008/images/header/elements-menu.png');
background-repeat: no-repeat;
display: block;
top: 2px !important;
left: 6px;
}

.td-social-email {
background-color: black;
}

@media (max-width: 767px) {
.td-sp-share-email {
top: 3px !important;
left: 3px !important;    
}
}

You will get this result:
http://screencast.com/t/wnU8Ud2Lkg9U

Thank you

Richbilt
tagDiv Member

Ah that’s wonderful – have never edited a php file and that did the trick wonderfully – thanks man 🙂

Nope, don’t have CSS knowledge either – but could probably do with getting some! Know any simple guides on how I can edit the formatting of this review section?

Much appreciated!

buttongts
tagDiv Member

Hello,

Unfortunately it doesn’t work. When I used this code in Custom CSS, fonts are larger, but don’t transform to H1 or H3.

Lucian
tagDiv Staff

Hi,

To decrease the block space at the bottom you cand use this CSS in Theme Panel -> Custom CSS:

.td_block1, .td_block2, .td_block3, .td_block4, .td_block5 {
padding-bottom: 0px !important;
}

For your second question could you be more specific? Please send me a screenshot or your site’s URL so I can take a look?

Thank you

Lucian
tagDiv Staff

Hi,

1. Add this custom CSS in Theme Panel -> Custom CSS:

.home .td-page-wrap .span8 .block-title span {
font-size: 30px;
}

2. Have you tried to change it from Theme Panel -> Custom Typography like this: http://screencast.com/t/JCdTbFKi9
If this not works use this CSS:

.td_mod3 .entry-title a, .td_mod3 .entry-title {
font-size: 15px !important;
}

Thank you

Lucian
tagDiv Staff

Hi,

You can move the review bar by moving one line of code in the loop-single.php file like this: http://screencast.com/t/v5Lqx7a2o and you have to paste it above the title like this: http://screencast.com/t/CQL6ARbTmf

To reduce the size vertically you need to add some custom CSS. Do you have CSS knowledge?

Thank you

Emil G
tagDiv Staff

Hi,

Thanks for your suggestion, we’ll think about this. If you want you can easily modify the buttons with css.

Thank you, Emil G.

Emil G
tagDiv Staff

Hi,

1. Replied via dashboard, you have to specify exact locations on where to apply the modification.
2. You have to use a code editor like notepad++ and you have to know some basic css/php to do those modifications. If you don’t know how to doit you have to hire a programmer to doit for you, you can always find one on places like http://studio.envato.com/

Thank you, Emil G.

SheikhOvais
tagDiv Member

I’m using the default template.

Pasting this custom CSS in the panel doesn’t work at all.

I do not have ANY idea how you’re talking about modifying this code (regarding sharing buttons). I couldn’t find that class in the theme editor from wp appearance panel.

Please let me know from where I can access the theme code like image you provided. And also, tell me how I can add a few words to this sharing box if I wish.

Emil G
tagDiv Staff

Hi,

A solution would be to use two sliders on page, one big slider and one normal slider – http://screencast.com/t/KfzBqvWoefBi
Use the same settings for both sliders (same category, sort order), hide the title on the normal slider.
Add a class to the sliders so you can target them in CSS like this:
http://screencast.com/t/guU3pZYB
http://screencast.com/t/A6bl2fhI2
Use css to hide the big slider on mobile and the show the normal slider instead (add the following css inside the Theme Panel -> Custom CSS):

@media (min-width: 767px) {
.bs_mobile .td_normal_slide {
display:none;
}
}
@media (max-width: 767px) {
.bs_mobile .td_block_slide_big {
display: none;
}
}

Now there should be 4 posts on desktop and 4 posts on mobile.

Thank you, Emil G.

Emil G
tagDiv Staff

Hi,

1. You can import this predefined syles like this:
http://screencast.com/t/yLOZrUAt
http://screencast.com/t/qLSTINIg

Do you use the default template? – http://screencast.com/t/e4Itye2zr
You can target h1, h2, h3 with custom css (add the css inside the Theme Panel -> Custom CSS):

h1 {
color: red;
}
h2 {
color: red;
}
h3 {
color: red;
}

But this will affect all h1, h2, h3 titles on the site, you have to add a specific class to target them only on the pages/posts you want.

2. I belive you are reffering to the featured image. The feature image can be removed like this: https://forum.tagdiv.com/how-to-hide-the-featured-image-on-post/

3. You can delete the code (or modify it) from the td_module_blog.php – http://screencast.com/t/ZiGcAU70s
You can find code for the other buttons above it, modify them to behave the way you want.
4. If you don’t use pagination or load more / infinite load options edit your home page and enable the “Unique articles” option like this: http://screencast.com/t/pUaAtaYg
If you use pagination configure blocks to display different categories.

Thank you, Emil G.

rbaccaro
tagDiv Member

Hi Marcus, thank you.

I found another CSS solution that may help not touching the source file.

/* Limit breacrumbs characters */

.entry-crumbs {
-o-text-overflow: ellipsis; /* […] Opera */
text-overflow: ellipsis; /* […] IE, Safari (WebKit) */
overflow: hidden; /* don’t show excess chars */
white-space: nowrap; /* force single line */
width: 600px; /* fixed width */
}

Lucian
tagDiv Staff

Hi,

Plase add this Custom CSS in Theme Panel -> Custom CSS:

/* responsive monitor */
@media (min-width: 1200px) {
.search-page-search-wrap .td-widget-search-input { 
width: 600px;
}  
.td-widget-search-input {
width: 230px;
}
} 
/* responsive tablet */
@media (min-width: 768px) and (max-width: 1200px) {
.search-page-search-wrap .td-widget-search-input { 
width: 540px;
}  
.td-widget-search-input {
width: 200px;
} 
}
/* responsive phone */
@media (max-width: 767px) {
.search-page-search-wrap .td-widget-search-input { 
width: 120px;
}
}

Thanks

Lucian
tagDiv Staff

Hi,

Yes, the system works only for Google Adsense, if you use other ad media you need to use this as is mentioned in the ad documentation: https://forum.tagdiv.com/ads/ and this hide the ads via CSS with display:none

<div class="td-visible-desktop">
desktop ad code
</div>
<div class="td-visible-tablet-l">
tablet landscape ad code
</div>
<div class="td-visible-tablet-tp">
tablet portrait ad code
</div>
<div class="td-visible-phone">
phones ad code
</div>

Thank for the message!

Lucian
tagDiv Staff

Hi,

It’s not a bug, in your case the banner was to large and overlapped the logo and needed a custom CSS.

Thanks for the message

  • This reply was modified 12 years by Lucian.
Lucian
tagDiv Staff

Hi,

Add this CSS in Theme Panel -> Custom CSS and see if works.

.wpb_row {
margin-left: 0 !important;
margin-right: 0 !important;
}

Thanks

Lucian
tagDiv Staff

Hi,

Plase add this custom CSS to Custom CSS->Theme Panel:

@media (max-width: 767px) {
.td-sp-ico-menu {
background-position: -20px -364px !important;
}
}

Thank you

webmaster808
tagDiv Member

The way this theme handles css is far from straightforward(not that there’s anything wrong with that!) It loads 2 different css files (3 if you have a child theme) as well as inlining a ton of styles from the Theme Panel in the header or footer depending on if you have the td_speed_booster plugin installed.

Depending on your Layout setting in the Theme Panel it will first load one of these files: td-bootstrap.css, td-bootstrap-980-not-resp.css, td-bootstrap-980-responsive.css or td-bootstrap-1170-not-resp.css. These are all compiled by TagDiv manually, using some combination of the Less files found in /Newspaper/includes/wp_booster/external/bootstrap/bootstrap-master/less.

If you have a child theme, it’s style.css will load next.

After that, it will load the theme style.css, which is compiled by TagDiv from the Less files located in /Newspaper/less_files.

The last step is to inline all of the styles that are defined in the Theme Panel. This is handled by 3 files, td_css_buffer.php, td_css_compiler.php and td_css_generator.php which are located in /Newspaper/includes/wp_booster. The td_css_generator.php file is where the Theme Panel option rules are hard-coded, the td_css_generator gets the settings from the Theme Panel and sends them to the compiler which then pushes the compiled styles to the td_css_buffer which writes them in the <head> or to the the td_speed_booster which loads them somewhere between the closing #outer-wrap </div> and </body>.

The theme has an on-the-fly compiler that can be used with the Less files in the less_files directory, you just go into /Newspaper/includes/wp_booster/td_config.php and set the Deploy Mode to dev instead of deploy. This will replace the theme’s style.css with the output of the less compiler.

This is problematic though, because this is only for development and once you have edited your styles, you cannot use that compiler to create a new style.css file to replace the old one(it outputs errors). You have to use a different compiler to get your final css file, because you can’t use the live compiler in production. This also does not affect the bootstrap or the hard-coded Theme Panel styles.

I’m using IDEA13 with the Less plugin and I can compile the main.less into a style.css that replaces the default one just fine, however I have not been able to do the same with the td-bootstrap.css. I need to figure out what magic combination of files in the bootstrap Less files will output the same td-bootstrap.css file that ships with the theme. Perhaps one of the TagDiv guys can shed some light on how that file is compiled?

mehedi
Participant
#0

Hi!

I want to make the comment count for all the blocks look like TheVege.com. Someone from tagDiv sent me this:
—————————————-
You have to do something like this:
– wrap the image inside a div and add the post comments counter: http://screencast.com/t/ywUNcGIkRF

<div class=”image_f”><?php echo $this->get_image(‘art-big-1col’); ?>
<div class=”comments_b10″><p><?php echo get_comments_number($this->post->ID)?></p></div></div>

– use css to style the newly added counter: – http://screencast.com/t/n6KN8v8JJBu

.image_f {
position: relative;
}
.comments_b10 {
position: absolute;
right: 10px;
bottom: 10px;
z-index: 1;
color: white;
font-size: 15px;
line-height: 0px;
text-align: center;
background-color: rgba(77,178,236,0.9);
}
.comments_b10 p{
padding: 10px 7px 10px 7px;
margin: 0px;
}
.comments_b10:after {
position: absolute;
bottom: -8px;
right: 0;
left: auto;
content: “”;
width: 7px;
height: 8px;
background-color: transparent;
background-repeat: no-repeat;
background-position: -8px -87px;
background-image: url(http://cdn3.vox-cdn.com/images/verge/sprites/ribbongles.v51a515f.png)
}
———————–

I added the code and it worked, unfortunately the CSS for tag P connects with the other P. For example, the text colour for P is “#fffff” here, but it connects with the other P tag (content text’s css) and makes it black. It happens to the font-size and height as well.

How can I fix that?

Thanks,
Mehedi

Viewing 25 results - 32,326 through 32,350 (of 33,436 total)