WordPress.org

Ready to get started?Download WordPress

Forums

Bold Headline
[resolved] Disabling Fittext (3 posts)

  1. Andre Varinski
    Member
    Posted 8 months ago #

    I find this theme absolutely perfect for the website I recently started. Indeed, the Child theme I created comprises very few modifications.
    This being said, I’m not very fond of Fittext (sorry!). While it does a good job on tablets, it didn’t impress me on larger screens (on a 21 in. display, for instance, site titles are disproportionate). So I decided to disable it.
    Although the fix I found (by trial and error, I must confess) seems to work, there is still a possibility I might have overlooked something important.

    First, I renamed the jquery.fittext.js file into .jquery.fittext.js so that it becomes a hidden file.

    Then I added these lines of code in the Child Theme style.css:

    h1.site-title a {
    	text-align: center;
    	font-size: 40.8px;
            font-size: 4.2rem;
    	color: #b70000;
    	text-transform: uppercase;
    	display: block;
    }

    I also had to define the value of h1,h2,h3,h4,h5,h6:

    /* Headings */
    h1,h2,h3,h4,h5,h6 {
    	clear: both;
    }
    h1 {
    	font-size: 30px;
    	line-height: 1.3846153846;
    }
    h2 {
    	font-size: 26px;
    	line-height: 1;
    }
    h3 {
    	font-size: 22px;
    	line-height: 1.0909090909;
    }
    h4 {
    	font-size: 20px;
    	line-height: 1.2;
    }
    h5 {
    	font-size: 18px;
    	line-height: 1.3333333333;
    }
    h6 {
    	font-size: 16px;
    	line-height: 1.5;
    }

    I’m sure this is not very orthodox... Hence this post: I’d like to know if there would have been a simpler way to disable Fittext.

    Thanks.

  2. Christine Rondeau
    WP Yogi & Forum Moderator
    Theme Author

    Posted 8 months ago #

    I think that's fine.
    The only thing I would do, is not rename the jquery file, but instead use the wp_dequeue script to remove the call to the fittext.

    http://codex.wordpress.org/Function_Reference/wp_dequeue_script

    But like you say, if it works. ... ;)

  3. Andre Varinski
    Member
    Posted 8 months ago #

    @Christine
    Thanks for the advice. Your solution is neater than mine, no doubt about it. I'll look into it when I have a minute... or two (to a layman like me, the operation seems a little bit more complicated than creating a child theme, I'm afraid...).
    Hats off again for your wonderful theme!

Reply

You must log in to post.

About this Theme

About this Topic

Tags