Search Results for 'css'

Results from the Forum
Radu A
tagDiv Member

hi

i don’t think that something from our theme,
anyway

hers the css:


@media
(max-width: 767px){
dl.gallery-item {
width: calc(60%) !important;
}

Thanks for you message.
Radu A.

sbo
Participant
#0

Image: http://i58.tinypic.com/23sx554.png

It’s CSS probably but I want to make the images in one column on mobile view. Is this possible?

Thanks,
sbo

julingn
Participant
#0

Hi

I would like to know how I can give all my H2 headings in posts the class “block-title”.

Is it also possible that the colored line below of the title will be in the color of the category?

Thanks in advance,
Norman

alexgpano
Participant
#0

Hello, first of all, TagDiv thanks for this great theme, i was one of the first to buy the theme, but i give it a time because i was focus in other things and now i back to touch my personal project that has as based your theme, and iÂŽm really surprise in how your theme is great and how it for sure the best buy that i did in themeforest. Congratz and thanks for this great work.

Now lets go to my questions.

First of all, into my site iÂŽm doing the logo on menu like guide https://forum.tagdiv.com/topic/moveplace-logo-in-menu-when-scrolled-down-and-menu-fixed/

Everything go ok, and is working perfectly but i want to do 2 things that i dont know how do it using custom CSS:

1. I need to increase the height of the menu area because when in menu my logo is going out of this area.

2. Every main menu item have a blue (or another color if you change) line on hover or when the menu item is selected. This is great but i want to remove these line when i hover my logo in the menu or when its in the home page.

Waiting for heard from you soon and that my doubts can help others clients. Thanks

Marius
tagDiv Staff

Hi,
Add this CSS in Theme panel -> Custom CSS

.iosSlider .slide-meta {
    display: none;
}

Thanks!

Marius
tagDiv Staff

Hi,
what do you mean? the title of the block?, i mean link to the categories selected?

If you want that add this line instead of existing at line 194: http://screencast.com/t/S4pvFdSSh

$buffy .= '<span ' . $td_header_color_css . '">' . $computed_category_block_name . '</span>';

Thanks!

Marius
tagDiv Staff

Hi,
Please try this CSS

.single .gallery img {
	width: 500px !important;
	height: auto;
}

.gallery-number {
	position: absolute;
	left: 0;
	top: 0;
	background: #ff6a62;
	padding: 0 10px;
}

.gallery-item {
	margin-top: 0 !important;
	margin-bottom: 22px !important;
}

@media (max-width: 767px) {
	.gallery-item {
		width: auto !important;
		float: none !important;
		margin: 0px !important;
	}
	.gallery-columns-1 .gallery-item {
		text-align: left !important;
	}
}
creactivate
tagDiv Member

just perfect. Thank you!

atensis
tagDiv Member

Hi Marius,

Thanks, but now on the desktop browser the images are no more 500 px wide, they are to small. When I resize the window the images would be 500px wide.

For example: http://www.alphamann.net/zu-viel-getrunken-30-fotos/

Here is the css code I have installed:

.single .gallery img {
	width: 500px !important;
	height: auto;
}

.gallery-number {
	position: absolute;
	left: 0;
	top: 0;
	background: #ff6a62;
	padding: 0 10px;
}

.gallery-item {
	margin-top: 0 !important;
	margin-bottom: 22px !important;
}

@media (max-width: 767px) {
	.gallery-item {
		width: auto !important;
	}
}

Could you please check this again? Thank you very much!

Radu
tagDiv Staff

Hi,

the id should be just output http://screencast.com/t/9pPantxQCkiq output-css

Radu O.

Marius
tagDiv Staff

Hi,
Yes works now,
Please go to Theme panel -> Custom CSS and add this

@media (max-width: 767px) {
  .gallery-item {
    width: auto !important;
  }
}

Also you can change from Theme panel -> Theme Colors you can change the FOOTER TEXT COLOR, chose a white color.

Thanks!

creactivate
tagDiv Member

@Radu that worked perfectly with the JS 🙂

However after i upgraded to 3.1 today it seems the addthis css file is back in header. Did you change anything? Have I done everything correctly?

It’s just the css from addthis that wont move now.

<link rel='stylesheet' id='output-css' href='http://creactivateno.wpengine.netdna-cdn.com/wp-content/plugins/addthis/css/output.css?ver=3.8.1' type='text/css' media='all' />

Now I realize i’m using a CDN but I’ve purged the cache multiple times so it shouldn’t be the problem.

<?php
/*
	Plugin Name: tagDiv speed booster
	Plugin URI: http://tagdiv.com
	Description: Speed booster for Newspaper theme
	Author: tagDiv
	Version: 2.1
	Author URI: http://tagdiv.com
*/

class td_speed_booster {

    var $load_contact_form_7 = '';
    var $load_google_fonts = '';

    var $styles_for_footer = array();

    function __construct() {
        add_action('wp_enqueue_scripts', array($this, 'enqueue_scripts_hook'), 100);
        add_action('wp_footer', array($this, 'wp_footer_hook'), 15);
        add_action('wp_head', array($this, 'wp_head_hook'), 15);
        define('TD_SPEED_BOOSTER' , 'v2.0');
    }

    function enqueue_scripts_hook() {

        
        $this->move_js_to_footer('bitly-js');

        
        if( !is_admin()){
            wp_deregister_script('jquery');
            wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"), true, '1.10.2', true);
            wp_enqueue_script('jquery');
        }

        //move styles
        $this->move_style_to_footer('output-css');
        $this->move_style_to_footer('bbp-default-bbpress');  //bpress old
        $this->move_style_to_footer('bbp-default');  //bpress

        $this->move_style_to_footer('contact-form-7');
        $this->move_style_to_footer('td-bootstrap');
        $this->move_style_to_footer('td-theme');

        $this->move_style_to_footer('google-font-rest');
        $this->move_style_to_footer('woocommerce_frontend_styles');

        //bbpress
        //remove_action( 'bbp_head', array($BBP_Default, 'head_scripts') );
    }

    function wp_footer_hook() {
        foreach ($this->styles_for_footer as $style_id => $style_src) {
            echo "<link rel='stylesheet' id='" . $style_id . "-css'  href='" . $style_src . "' type='text/css' media='all' />\n";
        }
    }

    function wp_head_hook() {
        echo '<style>body {visibility:hidden;}</style>';
    }

    function move_style_to_footer($style_id) {
        global $wp_styles;
        if (!empty($wp_styles->registered[$style_id]) and !empty($wp_styles->registered[$style_id]->src)) {
            $this->styles_for_footer[$style_id] = $wp_styles->registered[$style_id]->src;
            wp_deregister_style($style_id);
        }
    }

    function move_js_to_footer($js_id) {
        global $wp_scripts;
        wp_enqueue_script($js_id, ($wp_scripts->registered[$js_id]->src), '', $wp_scripts->registered[$js_id]->ver, true);
    }

}

new td_speed_booster();

?>
atflaten
tagDiv Member

Thanks for the CSS codes Radu.

The question still remains: How do I make the logo visible in the menu bar when scrolling, both on desktop AND mobile?

In your demo, the logo is visible in the menu when scrolling in responsive mode (mobile), but not when scrolling on desktop (see the images in this post: https://forum.tagdiv.com/topic/moveplace-logo-in-menu-when-scrolled-down-and-menu-fixed/)

I have followed Marius’ steps to make the logo visible as an image in the menu when scrolling on desktop. It works great (see http://www.screencast.com/t/DeYJSyxDZpF).

HOWEVER, this fix has made the logo in the menu disappear in responsive mode (see http://www.screencast.com/t/KSoryFQcTRIB)

Thanks for helping me out!

Are

Marius
tagDiv Staff

Hi,
Sorry, I’ve missed a selector, try this css

.post .entry-comments-views {
    bottom: auto !important;
}
.post .thumb-wrap {
    clear: both;
}

Thanks!

Marius
tagDiv Staff

Hi,
Probably the CSS used is incorrect or try to use it with !important.
If you want give me a link to see the issue and i will inspect it.

Thanks!

atflaten
tagDiv Member

2. Thanks for the CSS advice. I’ve tried it out, and it looks great (http://www.screencast.com/t/DeYJSyxDZpF)… until I zoom in. The logo jumps to the right (http://www.screencast.com/t/TUHQptYM).

I’ve used the following CSS:

 .menu-item-37076  {
    position: absolute;
    left: 260px;
    right: 260px;
}

How do I make it centered, no matter what?

1. Zooming in further (mobile view), the logo disappears: http://www.screencast.com/t/KSoryFQcTRIB

How do I make the logo show in the menu bar, both on desktop AND mobile?

Are

julingn
tagDiv Member

Sorry, but that custom CSS causes another issue. When I paste your code in the theme panel than

1.) the grey area above the featured images disappears, so great
2.) the big image on the frontpage in the top slider is gone 🙁

Cheers,
Norman

elicese
Participant
#0

I have problems with the personalization of the H1 – H2 – H3 etc …
I changed the font to the theme. Change everything to perfection .. but when I insert a title inside a page / article I find the default font “Roboto Condensed”
I tried to change the font-family from style.css, but nothing stays the same throughout.
How can I do?
Thank you very much!
Elisa

Marius
tagDiv Staff

Hi,
Of course here are all blocks and see what module use: https://forum.tagdiv.com/quick-info-guide/

You can edit each module here: http://screencast.com/t/7h0fN2ZkuHb and tweak from CSS if needed.

Thanks!

Marius
tagDiv Staff

Hi,
Not working on that style because that header is brake in 2: top logo + ad after the menu.
You can easy move it down with a CSS like:

.header-style-3 .td-grid-wrap {
    position: relative;
    top: 20px;
}

Thanks!

Marius
tagDiv Staff

Hi,
This is strange, i can replicate the bug, we know this situation is like that when you disable the data, comment count, etc like in your case, but in my case works.

Try with this css, add it in Theme panel -> Custom CSS

.post .entry-comments-views {
    bottom: auto !important;
}
.thumb-wrap {
    clear: both;
}

Thanks for the message!

Marius
tagDiv Staff

Hi,
1. If you use a logo in Logo section that should be on mobile like in our demo http://screencast.com/t/joWnovxu62Gv

2. You can align it manually for each device via CSS, using position relative and left.

Thanks!

Ulmi
Participant
#0

How can I change the thumb size / aspect ratio to 3:2 (especially for block 3, featured images inside a post and the big slide) via css?

atensis
Participant
#0

Hello,

I have added some extra code to the functions of newspaper. This code gives every image in a gallery a number.

Since I have updated to 3.01 I can no more ad this code to the functions.php. When I do that, it shows a blank page.

Here is another site of mine where it works http://www.maennerhoehle.com/arrrghhh/

Below is the code i need to place in the functions.php and the CSS.

Could you please check that? This function is very important for my site!

Thank you very much for your feedback!

Best regards,
Florian

Code for functions.php:

add_action( 'after_setup_theme', 'wpse_74492_replace_gallery_shortcode' );

/**
 * Replace the default shortcode handlers.
 *
 * @return void
 */
function wpse_74492_replace_gallery_shortcode()
{
    remove_shortcode( 'gallery' );
    add_shortcode( 'gallery', 'wpse_74492_gallery_shortcode' );
}

function wpse_74492_gallery_shortcode( $attr )
{
    // Let WordPress create the regular gallery 

    $gallery = gallery_shortcode( $attr );

    $gallery = preg_replace_callback( '~<img~', 'wpse_74492_gallery_callback', $gallery );

    return $gallery;
}

function wpse_74492_gallery_callback( $matches )
{
    static $count = 0;
    $count += 1;

    return "<span class='gallery-number'>$count</span>" . $matches[0];
}

This code is for the CSS:

.single .gallery img {
	width: 500px !important;
	height: auto;
}

.gallery-number {
	position: absolute;
	left: 0;
	top: 0;
	background: #ff6a62;
	padding: 0 10px;
}

.gallery-item {
	margin-top: XXpx !important;
	margin-bottom: 22px !important;
}
Marius
tagDiv Staff

Hi,
There is no easy solution, what you can do is to align it manually from CSS, with left, right but is not flexible on all devices. You can inspect it and take a look. Is complicated, sorry for the inconvenience!

Thanks!

Viewing 25 results - 32,976 through 33,000 (of 33,436 total)