Support » Theme: Attitude » Customizing the footer in Attitude theme

  • 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?


Viewing 15 replies - 1 through 15 (of 20 total)
  • (FYI – WordPress version: 3.5.1)



    Forum Moderator

    Why are you using an old copy of WordPress? Were you aware that your site is currently running a very real risk of being hacked. You need to upgrade WordPress asap.

    Moderator Jan Dembowski


    Brute Squad and Volunteer Moderator

    After you’ve updated your WordPress installation (really, do that first) give this thread a look.

    Start at the top, it’ll be easier to get when you do.

    Remember, you want to use child theme instead of modifying the Attitude theme directly.

    Um, I’m sorry…I’m completely new to WordPress. Apparently I looked in the wrong place for the version. The footer of my Dashboard says “Thank you for creating with WordPress. Version 3.5.2” and there are no updates showing as available, so as far as I can tell I do have the latest versions of WP and Attitude, it’s just when I posted the first time I copied from the right column of this page thinking it was displaying my version of WP and it wasn’t. Sorry…

    Moderator Jan Dembowski


    Brute Squad and Volunteer Moderator

    It’s all good. 😉

    Were you able to customize that footer?

    (deep breath) Feels a little like a request to go swimming led into what I thought I was jumping off the high dive but landed in the ocean.

    I’m trying to digest what all is involved in setting up a child theme. I get why it’s needed, makes perfect sense. I’m getting a little confused with the part about ‘get_stylesheet_directory()’ — specifically whether that’s applicable to just change the footer text and hrefs.

    I thought I had seen a reply in this string about a footer-somethingElse.php, which I think is where I’d edit the text/href but I’m not seeing that now….?

    (Wiping egg from face) imperfect memory… found that in the string you ref’d on the previous support topic

    I’m getting an unexpected T_STRING error, so I must have missed a quote or something in the function.php:

    //Unlike style.css, the functions.php of a child theme does not override the parent functions.php __ It is loaded immediately before and in addition to the parent’s functions.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() {
       $output = '<div class="copyright">'.'Copyright © [the-year] [site-link] Powered by: <a href="<?php echo ""; ?>"><img title="Client Service Group" src="<?php echo url::file_loc('img'); ?>images/logo130.png" alt="Client Service Provided" width="130"/></a></p> '.'</div><!-- .copyright -->';
       echo do_shortcode( $output );

    Error statement is:
    Parse error: syntax error, unexpected T_STRING in /home/content/k/a/l/kalosplastics/html/blog/wp-content/themes/attitude-child/functions.php on line 14

    with line 14 in the above code being this argument:
    $output = '<div class="copyright">'.'Copyright © [the-year] [site-link] Powered by: <a href="<?php echo ""; ?>"><img title="Client Service Group" src="<?php echo url::file_loc('img'); ?>images/logo130.png" alt="Client Service Provided" width="130"/></a></p> '.'</div><!-- .copyright -->';

    Moderator Andrew Nevins


    Forum moderator

    You’re opening PHP even though it’s not closed.

    Moderator Andrew Nevins


    Forum moderator

    Try this instead:

    $imgUrl = url::file_loc('img');
    $output = '
    <div class="copyright">Copyright © [the-year] [site-link] Powered by: <a href="//">
     <img title="Client Service Group" src="'. $imgUrl . 'images/logo130.png" alt="Client Service Provided" width="130"/>
    </div><!-- .copyright -->

    OK, that seems to work better in that the page loads, although the banner and other stuff isn’t showing. At the bottom of the page, I see this error:
    Fatal error: Class ‘url’ not found in /home/content/../html/blog/wp-content/themes/attitude-child/functions.php on line 12

    where line 12 is now
    $imgUrl = url::file_loc('img');
    in the function.php…

    Do I need to add a div tag for url? Or is that a capitalization or delimiter issue…?

    (Yes, I’m really green. Thanks in advance for your patience.)

    I loaded the attitude-child theme and activate it, so it shows as the theme. However, the style.css apparently isn’t reading through, because even though when I view the style.css in the editor and verify that the changes are there, none of the changes are showing. Path is ..\wp-content\themes\attitude-child\style.css and the style.css is a copy of the style.css from the parent theme with modifications. I originally modified it in the parent directory, so I know the modifications work. It just isn’t working now that I moved it to the child directory and upgraded the theme.


    Those “backslashes” are backwards – they should be /

    You also should have only changes NOT a copy of the entire CSS file in the child theme. Doing so creates duplicate code AND makes it much harder to keep track of what you have changed. You can use a file comparison program to compare files and extract your changes for the child theme.

    Also, if the above is referring to the child theme, the @import line in the new style.css file should be:

    @import url("../attitude/style.css");

    I actually didn’t have a \ in the file, that was just a copy/paste from Windows Explorer within the context of describing where I had placed the child theme directory. I’m sorry if that was confusing…

    In the CSS i only have referenced exactly as:
    @import url("../attitude/style.css");

    I have the child theme’s style.css containing only the lines that have been modified, and for clarity/simplicity, the entire child style.css is:

    Theme Name: Attitude Child
    Author: FindLocal Company
    Description: Child theme for the Attitude theme
    Author: FindLocal Company
    Template: attitude
    Version: 0.1.5
    @import url("../attitude/style.css");
    /* =Menu MODS------------------------------------------------- */
    #access {
    	/*border-top: 1px solid #EAEAEA;*/
    	/*border-bottom: 1px solid #EAEAEA;*/
    #access ul {
    	border-radius: 10px 10px;
    	background-color: #6CD6E6;
    	margin: 5px;
    #access a {
    	color: #333;
    	display: block;
    	font-size: 14px;
    	padding: 16px 5px 5px;
    /* =Header MODS---------------------------------------------- */
    #branding {
    	margin-top: 60px;
    .hgroup-right {
    	margin-top: -78px;

    So, the child folder only contains the /images folder with only the modified images, and the function.php, and the modifications-only version of the style.css.

    Now the theme won’t activate. It shows as a broken theme, template missing.

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