Search Results for 'child theme'

Results from the Forum
Yiannis Girod
tagDiv Member

THanks ! But I guess it doesn’t work in a child theme… Isn’t It ?

Lucian
tagDiv Staff

Hi,

Unfortunately the td_social_icons.php file is not editable using child theme as you probably noticed and I can’t offer you a solution to this. Probably the best way will be to make the changes you want by ordering the social icons into the social icons array and then make a copy of this file so you can replace it after an update.

Sorry for the inconvenience
Thanks for the message!

doran
tagDiv Member

I got confused.

1) Open sans works fine but ubuntu,roboto etc. do not. They look different.

Roboto: http://prntscr.com/4jbd9r
Ubuntu:http://prntscr.com/4jbdp8
Roboto and Ubuntu(google fonts page): http://prntscr.com/4jbfff

2) Blue default color loading first is not fixed. I re-installed the plugin and update again the theme. nothing changed. Last solution does not make any meaning because problem is not only blue color. Default template loads first. all fonts and colors change.

3) All I need is a website with latin extended fonts. I want to change widget, menu, h1, h2, title. etc.. fonts and colors using theme panel.

All these fonts and colors supposed to be changed by theme panel. But, in this situation, theme panel has no fuction.
or
(Theme Panel > Custom Typography) never works. I have to change everything manually with css. Is this right?

It has been just two weeks, that I bought the theme. I can start all over if there will be no problems like these.

What do you recommend?

Lucian
tagDiv Staff

Hi,

I just checked your site and seems to me it’s working fine using both fonts Roboto/Open sans: http://screencast.com/t/dylrBRszw I have enlarged the block title font here so you can see that if you use this font the turkish characters look fine also.

Use the css like this if you want to change the block titles: http://screencast.com/t/BPwIBCHr2z

.column_container .block-title span {
font-family: "Open Sans" !important;
line-height: 28px;
}

Regarding the blue default color loading first, please re-install the speedbooster plugin and also update the theme to the latest version 4.2.2. Before this please make sure you make a backup of your current theme files so you can revert if something goes wrong.
If that dose not help, try this solution: https://forum.tagdiv.com/topic/about-default-theme-colors/#post-17657
Hope this helps!

Thanks

doran
tagDiv Member

Thanks Lucian,

It didnt worked. I only want to change block title font not all parts. So add only this to custom css:

.block-title span {
    font-family: "Roboto Condensed" !important;
}

Would you please check? http://www.konsantrepo.com/

Apart from this, when I open the website, I first see the blue title block which is default, then it becomes grey which is my choice.

If I modify something on theme panel, do I need to write a custom css for every single change?

Regards,

sgaddo
tagDiv Member

Same wish here =)
The file responsible for social icons order is td_social_icons.php located in
wp-content\themes\Newspaper\includes\wp_booster
Changing the order of array items we can get our custom order for every social widget using those items.
Of course we will lose everything at the next update =(

My question: is it possible to load custom class within child theme without redeclare it?

Thanks a lot for your great job tagDiv guys!

EDIT
My temporary solution is changing the way in which td_social_icons.php is loaded by td_wordpres_booster.php, using locate_template function (already used to load custom child modules) instead of require_once and then and using my own td_social_icons.php in child theme (of course creating wp_booster folder in child theme)

Of course is temporary because at the next update I will lose the changes as well, but in this way at least I will keep my own social sorting =)

Lucian
tagDiv Staff

Hi,

Should work, make sure you have done this right, I have checked this on your site and worked fine: http://screencast.com/t/V7N6kBvv

Thanks

doran
tagDiv Member

This is google “open sans 18px”.
http://prntscr.com/4iwy4y

This is how it looks when I choose “open sans 18px” from the widgets title fonts.
http://prntscr.com/4iwykr

What do I need to do for a clean turkish website?

Thanks

Lucian
tagDiv Staff

Hi,

You can go here: https://www.google.com/fonts and chose your font: http://screencast.com/t/GuRk2NUf

Thanks

doran
tagDiv Member

hi again,

which fonts are ok for turkish letters? “ışğçöü” I dont want them affect pagespeed. just the recommended ones.
I use default font for all contents and parts but some of them looks bad.

http://postimg.org/image/t6xdn0nv3/

potion
tagDiv Member

@TheMediumUTM – You can use the CSS :nth-child() selector rather than nesting elements in rows. It won’t break the layout, but accurately targeting the element sometimes takes a few tries. I often have to fix the object hierarchy, and also add a property that makes it easy to visually identify so that you know you’ve got the right one, something like:

div.some_known_class > div > div:nth-child(2) { background-color: red; }

<:) denis

  • This reply was modified 11 years by potion.
  • This reply was modified 11 years by potion.
potion
tagDiv Member

Thanks Lucian. Brilliant job on the Newspaper theme – Excellent.

(Errata: Of course, it wasn’t header.php, it was the parts/header-xxxxxx.php files that I modified in the child theme) – The site is still being built but I’ll remove the maintenance splash page so you can see the mods in action – http://www.catalystmag.co.za

simchris
tagDiv Member

Well, several things you can do
1) use only text ads from adsense, so images are not loaded (one big issue right there)
2) very aggressive caching and/or proper CDN
3) fast server (less than 300msec response time)
4) avoid stuff like photon or other stuff loading off wordpress
5) optimize your social media stuff; use share buttons not the numerical crap that needs to go “fetch” numbers for EACH button
6) load fonts from your own CSS not from Google CSS; or use web safe fonts ONLY
7) limit use of plugins which slow down your php
8) optimize your config.php file to include paths to your resources
9) do not use child theme which uses css redirect which google does *not* like
etc.

I’m sure Shashank could likely provide a single “round up” of all the stuff he’s done in the particular case of his own site. I just tested one of his pages, which as a desktop score of 93, mobile 86; which is pretty damn impressive with adsense and disqus running!
https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.styzic.com%2Fgadgets%2Fiphone%2Fbigger-iphone-6l%2F491%2F&tab=desktop

  • This reply was modified 11 years by simchris.
TheMediumUTM
tagDiv Member

🙂

doran
tagDiv Member

thank you it is working now.

saltzfrau
tagDiv Member

I spoke too soon. Works when I install it, goes mad when I try to customize it from the theme panel (child theme or not, and still like this after emptying all the caches)

saltzfrau
tagDiv Member

Thanks very much Christopher – that works now. Child theme also now working so I don’t know what I screwed up there…

TheMediumUTM
tagDiv Member

Easy way is custom CSS:

#td-top-search {
  display: none !important;
}

(Less easy but technically better way is to edit menu-header.php and menu-header-center.php in a child theme and remove the content of the div whose ID I just quoted.)

TheMediumUTM
tagDiv Member

My apologies, I forgot to copy the <?php tag at the very start of the file and to add a semicolon at the end of the last line. Try it with that.

simchris
tagDiv Member

Hi, this has been covered before (search forum), for this exact same question. This is usually due to a delay in the color over-ride loading so you see a flash of the default color; more noticeable if using a child theme due to the CSS redirect. I think the main “right” solution is to specify some colors in the styles.css file if you know how to do that.

Marius will have better answer, but you can search forum as this identical question has been asked before 🙂

prose976
Participant
#0

Hello,

Hope all is well with the TagDiv crew.

I have been successful in offsetting the posts on my Home page, but I have not been able to find an solution to offsetting the posts below my main slider on Category Pages.

Any help you can provide to resolve this is greatly appreciated. I use the Child Theme.

Thanks.

Philip

simchris
tagDiv Member

Be sure to deactivate child theme when upgrading and select main theme as working; then upgrade files; then go back and activate child theme. At least that seems to be the way to do that. And of course clear cache on server/CDN, and your web browser – often what happens is that something is loading the old styles, and so browser ends up loading mix of old and new. Might not be your issue, but worth a try. 4.2 does work, but I haven’t used it with child theme myself as I prefer to change core files and use custom CSS to avoid such weirdo issues with child themes, and I’m a believer in NOT using the CSS redirect from child to parent.

saltzfrau
Participant
#0

Hi guys, I was on holiday so when I came back it was time to update from 3.8.1 to 4.2.

It doesn’t work at all…can you help? I’ve reinstalled 3.8.1 for now. I installed the complete new files. Normally I use child theme. Many thanks

doran
tagDiv Member

Thank you for your interest. I copied the code in child theme functions.php. It didnt worked. There is a white screen now.

TheMediumUTM
tagDiv Member

Here it is and here’s how I got it:

1. Copied and pasted your child theme functions code

2. Copied and pasted the function td_load_css from the parent theme’s functions code

3. Changed the name from td_load_css to my_td_load_css

4. Changed the line you mentioned to include ‘&subset=latin,latin-ext’

5. Copied the two extra lines I mentioned in my first post and pasted them at the very end

See if this works:

/*  ----------------------------------------------------------------------------
    WordPress booster framework - this is our theme framework - all the content and settings are there
    It is not necessary to include it in the child theme only if you want to use the API
*/
if (!defined('TD_THEME_WP_BOOSTER')) {
	include TEMPLATEPATH . '/includes/td_wordpres_booster.php';
}

function my_td_load_css() {

    //google fonts
    if ((defined('TD_DEPLOY_MODE') and (TD_DEPLOY_MODE == 'demo' /*or TD_DEPLOY_MODE == 'dev' */)) or defined('TD_SPEED_BOOSTER')) { //on demo and dev we load only the latin fonts
        //modify this collection if you want to optimize the fonts loaded
        //collection url -> : http://www.google.com/fonts#ReviewPlace:refine/Collection:PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700
		
        wp_enqueue_style('google-font-rest', td_global::$http_or_https . '://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700&subset=latin,latin-ext'); //used on menus/small text
		
		// Above line has been modified in child theme to include '&subset=latin,latin-ext'
		
    } else {

        $td_user_fonts_list = array();
        $td_user_fonts_db = td_util::get_option('td_fonts');
        if(!empty($td_user_fonts_db)) {
            foreach($td_user_fonts_db as $td_font_setting_key => $td_font_setting_val) {
                if(!empty($td_font_setting_val) and !empty($td_font_setting_val['font_family'])) {
                    $td_user_fonts_list[] = $td_font_setting_val['font_family'];
                }
            }
        }

        if(!in_array('g_438', $td_user_fonts_list)) {//'g_438', //Open Sans
            wp_enqueue_style('google-font-opensans', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on menus/small text
        }

        if(!in_array('g_617', $td_user_fonts_list)) {//'g_617', //Ubuntu
            wp_enqueue_style('google-font-ubuntu', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic&subset=latin,cyrillic-ext,greek-ext,greek,latin-ext,cyrillic'); //used on content
        }

        if(!in_array('g_453', $td_user_fonts_list)) {//'g_453', //PT Sans
            wp_enqueue_style('google-font-pt-sans', td_global::$http_or_https . '://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic&subset=latin,cyrillic-ext,latin-ext,cyrillic'); //used on content
        }

        if(!in_array('g_445', $td_user_fonts_list)) {//'g_445', //Oswald
            wp_enqueue_style('google-font-oswald', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Oswald:400,300,700&subset=latin,latin-ext'); //used on content
        }

        if(!in_array('g_521', $td_user_fonts_list)) {//'g_521', //Roboto
            wp_enqueue_style('google-roboto-cond', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on content
        }

        if(!in_array('g_639', $td_user_fonts_list)) {//'g_639', //Vollkorn
            wp_enqueue_style('google-vollkorn', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Vollkorn:400italic,700italic,400,700'); //used on quoates classic
        }
    }

    //add the google style link for fonts used by user
    $td_fonts_css_files = td_util::get_option('td_fonts_css_files');
    if(!empty($td_fonts_css_files)) {
        wp_enqueue_style('google-fonts-style', td_global::$http_or_https . $td_fonts_css_files);
    }

    //bootstrap - custom built - it was generated via compilation of /external/bootstrap-master/less/bootstrap.less
    $responsive = td_util::get_option('tds_responsive');
    switch ($responsive) {
        case '980_responsive':
            wp_enqueue_style('td-bootstrap', get_template_directory_uri() . '/includes/wp_booster/external/bootstrap/td-bootstrap-980-responsive.css', '', TD_THEME_VERSION, 'all' );
            break;

        case '980':
            wp_enqueue_style('td-bootstrap', get_template_directory_uri() . '/includes/wp_booster/external/bootstrap/td-bootstrap-980-not-resp.css', '', TD_THEME_VERSION, 'all' );
            break;

        case '1170':
            wp_enqueue_style('td-bootstrap', get_template_directory_uri() . '/includes/wp_booster/external/bootstrap/td-bootstrap-1170-not-resp.css', '', TD_THEME_VERSION, 'all' );
            break;

        default:
            wp_enqueue_style('td-bootstrap', get_template_directory_uri() . '/includes/wp_booster/external/bootstrap/td-bootstrap.css', '', TD_THEME_VERSION, 'all' );
            break;
    }

    //main theme style - set the TD_DEBUG_USE_LESS flag in /includes/app/td_config.php and the theme will load the less files and compile them for you
    if (TD_DEBUG_USE_LESS) {
        wp_enqueue_style('td-theme', get_template_directory_uri() . '/td_less_style.css.php',  array('td-bootstrap'), TD_THEME_VERSION, 'all' );
        //wp_enqueue_style('td-theme', get_template_directory_uri() . '/style.less', array('td-bootstrap'), TD_THEME_VERSION, 'all' );
    } else {
        wp_enqueue_style('td-theme', get_stylesheet_uri(), array('td-bootstrap'), TD_THEME_VERSION, 'all' );
    }
}

remove_action('wp_enqueue_scripts', 'td_load_css');
add_action('wp_enqueue_scripts', 'my_td_load_css')
Viewing 25 results - 12,551 through 12,575 (of 12,866 total)