• Resolved RachelP16

    (@rachelp16)


    Hi, new to WP forum here ??
    A little background; I mainly use WP dashboard to do my editing but have CPanel which I use to make changes to my child theme. I am a code noob so please be gentle!

    Ok here’s what I have done:
    Installed Quest Theme. Made Quest-child theme. It has functions.php and style.css files in it.

    My child style.css has the child theme info plus changes to wpcf7 formatting.
    That’s all.

    Problem:
    When I put in a long sentence in the copyright text it will wrap into 2 lines at the midpoint of page. Does not happen when I resize screen size.
    I have tried various other methods of changing the footer text but this way seems to be the best so far with this one exception. I can work around it by only using a short sentence but it bugs me. Any ideas please?

    This is all the code that’s in my functions.php

    <?php
    
    function theme_enqueue_styles() {
    
        $parent_style = 'parent-style';
    
        wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( $parent_style, get_template_directory_uri() . '/custom-editor-style.css' );
        wp_enqueue_style( $parent_style, get_template_directory_uri() . '/quest-all.css' );
        wp_enqueue_style( $parent_style, get_template_directory_uri() . '/admin.css' );
        wp_enqueue_style( $parent_style, get_template_directory_uri() . '/jquery-tourbus.css' );
      wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array( $parent_style )
        );
    }
    
    {
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    }
    
    add_filter('quest_footer_copyright_text', 'my_footer_copyright_text', '50', 1);
    function my_footer_copyright_text( $copyright ){
    
    $html .='Copyright ?2016 Company Name. All Rights Reserved.'; return $html;

Viewing 3 replies - 1 through 3 (of 3 total)
  • The problem is not in your child theme, it’s in main theme’s markup and CSS class. Take a look at the footer.php and notice these 2 divs.

    https://themes.trac.www.ads-software.com/browser/quest/1.4.3/footer.php#L30

    <div class="col-md-6 copyright-text">
    </div>
    
    <div class="col-md-6 social-icon-container clearfix">
    </div>

    So the reason long line of text in copyright section wraps into second line is because its containing div is only half the width, col-md-6. The other half is reserved for social icons.

    We can extend the copyright text (and social icons section) all the way, you we can do this by using this code in our Child Theme stylesheet.

    .col-md-6.copyright-text,
    .col-md-6.social-icon-container {
    	float: none;
    	width: 100%;
    }
    Thread Starter RachelP16

    (@rachelp16)

    Awesome! Works perfectly. Thank you so much for the quick fix!

    ido not know how to change the topic credits foot some help please

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Quest Child Footer returning to second line’ is closed to new replies.