• 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 - 16 through 30 (of 44 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Have you tried disabling your caching plugin?

    no i haven’t but cant i edit it from FTP filzilla

    Thread Starter gscohier

    (@gscohier)

    Done but not made a difference…

    Thread Starter gscohier

    (@gscohier)

    Wow! This is going to get confusing!
    @ullaejike, could you start a thread for your issue? Thanks. ??

    Please help me am new in wordpress dont know how to start a thread?

    Thread Starter gscohier

    (@gscohier)

    Go back to the main page here.
    If you scroll right down to the bottom, you’ll see a box similar to this one.
    Just fill the details.

    But as Andrew Nevins said, this is not the right forum for you.
    This one is for a theme called Customizr and you’re not using this theme so I doubt you’ll get the answer you’re looking for.

    You’ll need to find the support forum for the theme you’re using.

    thanks

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @gscohier, Could you link your site?

    Thread Starter gscohier

    (@gscohier)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    When you created the parts folder, made a copy of the file and pasted it into that parts folder, was this through the server (FTP etc.)?

    Thread Starter gscohier

    (@gscohier)

    Yes, it was.
    It’s showing on WP and I can edit it though so the changes have been updated.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you edit the class-main-footer.php file from your Child Theme (in the parts folder) and try to make the change again?

    Thread Starter gscohier

    (@gscohier)

    Yes, just updated it to just “Be” for the name and it’s showing the “File edited successfully.” message at the top but no changes on the site…

    Thread Starter gscohier

    (@gscohier)

    Also just gone into the main class-main-footer.php , copied it all, pasted it over the one in my Child’s Theme then did the edit again and still not working…

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I’m not sure what’s wrong because I went through this modification myself just a moment ago and I didn’t experience your issue.

    For example, in the ‘parts‘ folder of my Child Theme I edited the ‘class-main-footer.php‘ file. I changed the, “Themes & Co” text to, “djisaudjisahduias” [screenshot] and then checked the website [screenshot]. The website showed the footer text.

    Just wondering, does your Child Theme folder look like this https://snag.gy/xa90u.jpg ? If not, what are the differences?

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