• Resolved gscohier

    (@gscohier)


    Hi,

    When I try to update the footer credits, I get the following error:
    Parse error: syntax error, unexpected ‘:’ in /home/content/74/11716374/html/wp-content/themes/customizr/parts/class-main-footer.php on line 81

    Doing it in class.footer.php in this bit:

    [ Moderator note: please wrap code in backticks or use the code button. ]

    <div class="span4 credits">
    	    	<?php
    		    	$credits =  sprintf( '<p> · ? %1$s <a href="%2$s" title="%3$s" rel="bookmark">%3$s</a> · Designed by %4$s ·</p>',
    					    esc_attr( date( 'Y' ) ),
    					    esc_url( home_url() ),
    					    esc_attr(get_bloginfo()),
    					    '<a href="'.TC_WEBSITE.'">Themes & Co</a>'
    				);
    				echo apply_filters( 'footer_credits', $credits );
    			?>
    		</div>
    		<?php
        }

    Trying to replace this: href=”‘.TC_WEBSITE.'”>Themes & Co with my stuff but it won’t work.

    Anyone else having the same issue?

Viewing 15 replies - 1 through 15 (of 44 total)
  • HI Gscohier,

    If you want to change the text, you can do this one:

    ‘a href=”‘.TC_WEBSITE.'”>Your-Site.com'</a

    And to change the URL, please open the style.css file and find out this code (a the top of the file, line 6):

    Author URI: https://www.themesandco.com/

    Change the url become your site URL

    Thread Starter gscohier

    (@gscohier)

    Is this something I can do in the child’s theme css of does it have to be from the parent one?

    HI Gscohier,

    this trick cannot be done with child theme, you have to modify the parent theme since child theme also calling the parent theme style.css (if you modify the child, the author URI from parent theme will replace your modification).

    But, for the footer you can do it at child theme.

    Thread Starter gscohier

    (@gscohier)

    It’s work! Thanks!
    Previously, it was all done in the class.footer.php.

    It’s a bit annoying since once I hand over to the client and they update the theme, our details will disappear…

    Is there a way around this?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Don’t you have the solution already? What stops you from applying it to a Child Theme?

    Thread Starter gscohier

    (@gscohier)

    I’d like the credits to remain to our company even when the theme is updated.
    Currently need to do manually each time there’s an update. ??

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Why can’t you apply that fix to your Child Theme?

    Thread Starter gscohier

    (@gscohier)

    the child theme only has the style css sheet in it.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Which file was it you modified? class-main-footer.php?

    Thread Starter gscohier

    (@gscohier)

    yes. ??

    Is there something which could go into the style sheet css instead so it doesn’t get over-written?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Make a new folder in your Child Theme and call it “parts”.

    Then copy ‘class-main-footer.php’ from the parent theme and paste it into the “parts” folder of your Child Theme.

    For any PHP file, with the exception of functions.php, you want to modify in future you just copy it over from your parent theme and paste it into your Child Theme. You’ll also need to retain the directory structure if that exists in the parent theme.

    https://codex.www.ads-software.com/Child_Themes#Template_Files

    Thread Starter gscohier

    (@gscohier)

    Hehehe that link looks super complicated! Wished I’d never agreed to do this… ??

    hallo please am using Sentient themes and i need to change the footer to my site name not powered by woothemes help me please.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You need to contact WooThemes as www.ads-software.com forums are meant for themes distributed on www.ads-software.com.

    Thread Starter gscohier

    (@gscohier)

    I must be missing something.

    I’ve gone into the files, created a “parts” folders under Customizr-child.
    Made a copy of the class-main-footer.php and made the necessary amends but there not showing on the site.
    It’s still shows “Theme & Co”….

    Have I missed a step?

Viewing 15 replies - 1 through 15 (of 44 total)
  • The topic ‘Credits in the footer’ is closed to new replies.