• Resolved Michael

    (@tony-alibaba)


    This is my php functions file below.
    I keep getting this error

    Parse error: syntax error, unexpected ‘<‘ in /home/ml420/public_html/wp-content/themes/customizr-child /functions.php on line 285

    I can’t logg onto my site, how do i fix this?

    [Moderator Note: Excessive, unenclosed code moderated. Please post code or markup between backticks or use the code button. Or better still – use a pastebin. ]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Michael

    (@tony-alibaba)

    [Please use a pastebin.]

    Michael why did you copy the whole customizr functions.php in your child theme, you don’t need to do it.
    The child-theme functions.php shoul contain just your custom functions / hooks.
    Use this: https://pastebin.com/JkEwJ7KU

    Thread Starter Michael

    (@tony-alibaba)

    Hi D, thank you friend, I appreciate the advice,

    okay, the issue I’m having is somewhere around here at the end, and it is giving me the error code above. Howe can I fix it?

    <?php
    }
    add_filter('tc_logo_link_url', 'change_site_main_link');
    function change_site_main_link($output) {
        return 'https://poetsayings.com/magazine/';
    }
    function SearchFilter($query) {
    if ($query->is_search) {
    $query->set('post_type', 'post');
    }
    return $query;
    }

    My apologies to the moderator.

    Are you using the code I gave you?
    It’s your code without the part you didn’t have to copy from customizr.

    Thread Starter Michael

    (@tony-alibaba)

    Hi there D, I just want to say how much I appreciate your time, I did use the code from the link you provided but it didn’t change anything, I’m still getting the same error. Any suggestions my friend, and again thank you for your time and effort always.

    If you’re using the code I gave you.. you don’t have a line 285 in that child-theme functions.php, so the problem could be a server cache issue?

    p.s.
    the code I gave is the whole content (at the moment) you have to have in your child theme functions.php

    p.p.s
    your welcome ??

    Thread Starter Michael

    (@tony-alibaba)

    Wow, I admire this guy –> d4z_c0nf!

    Hey D, you are a lifesaver, have an awesome day!

    I see you solved.
    Now I can go to sleep.
    See you Michael ??

    Thread Starter Michael

    (@tony-alibaba)

    Ha ha, thanks my good friend, you are the best!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Major Malfunction, need help fast please’ is closed to new replies.