• Hi, I’m another Attitude user with a customization question. (Loving the responsiveness of this template, BTW.)

    We need to edit the footer to add credits for the blog designers, etc., but there is no text exposed in the footer.php to edit the labels and hrefs, and there is no way that I see to do it under Theme Options.

    What am I missing?

    Thanks!
    Rinnie

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter RinnieWriter

    (@rinniewriter)

    (I can’t figure out how to edit my post, so I can’t just add a follow-up question or update the information.)

    Since the child theme was previously activated, and at that time the child style.css had all the lines from the parent style.css, I don’t think that I should be copying any PHP files (other than function.php) into the child theme folder. I re-read the child themes info, and it doesn’t mention anything about needing any files from the parent theme except for whatever is necessary to delineate the desired modifications. And, since the child theme was able to be activated before I stripped out all the other lines from the styles.css that are okay as-is in the parent styles.css…I’m thinking it must be something that I deleted from the styles.css that is throwing the “template missing” error.

    Since the error now is that the template is missing, does that mean the child’s style.css has to also include the lines defining the styles where the word template is part of the style/class name?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I don’t think you should copy the functions.php file over into your Child Theme. Can you try removing this?

    Thread Starter RinnieWriter

    (@rinniewriter)

    The functions.php file is there because one of the modifications I have to do is changing the footer, which I was attempting to do as per these instructions. Referenced article in that link says, “Unlike style.css, the functions.php of a child theme does not override its counterpart from the parent. “

    So, the functions.php file that I have in the child theme is:

    <?php
    
    // Remove old copyright text
    add_action( 'init' , 'mh_remove_copy' , 15 );
    function mh_remove_copy() {
            remove_action( 'attitude_footer', 'attitude_footer_info', 30 );
    }
    
    // Add my own copyright text
    add_action( 'attitude_footer' , 'mh_footer_info' , 30 );
    function mh_footer_info() {
       $imgUrl = url::file_loc('img');
       $output = '<div class="copyright">Copyright ? [the-year] [site-link] Powered by: <a href="//www.company.com/website-optimization-design.html"> <img title="Website Optimization" src="'. $imgUrl . 'images/logo130.png" alt="Website Optimization" width="130"/></a></div><!-- .copyright -->';
       echo do_shortcode( $output );
    }
    <link rel="author" href="https://plus.google.com/111599818756142119126/posts" />
    
    ?>

    (I had to strip out the URL-specific stuff to keep Google from snagging this forum string, but you can inbox me for details.)

    Thread Starter RinnieWriter

    (@rinniewriter)

    Crud – the <link> tag isn’t in there…I double-pasted that oops in the process of compiling that reply… please skip that line.

    thank u friends for your reply..

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Customizing the footer in Attitude theme’ is closed to new replies.