• Resolved horseracingsussed

    (@horseracingsussed)


    Hi

    I am trying to widgetize the Press Row theme, using the instructions on auotomatic. I have up dated my sidebar as per the instuctions and it is as follows

    https://wordpress.pastebin.ca/952806

    I have tried several times to up date the functions code and searched the forum for the answers but I can not find them.

    I get the following error

    Parse error: syntax error, unexpected $end in /home/.thurston/howtoboostwealth/www.horseracingsussed.com/ProTips/wp-content/themes/PressRow/functions.php on line 399

    When I look at the code I do not see a line 399 it stops at 398.
    function code is here

    https://wordpress.pastebin.ca/952789

    Can anyone help please it has me baffled.

    Many Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Try putting the register sidebar code at the top of the functions.php rather than at the end of the file.

    Thread Starter horseracingsussed

    (@horseracingsussed)

    Hi

    Many thanks for trying to help. I id as you suggested, originally it threw up an error, unexpected } on line 339.

    So I deleted that and it threw up the original error,

    Parse error: syntax error, unexpected $end in /home/.thurston/howtoboostwealth/www.horseracingsussed.com/ProTips/wp-content/themes/PressRow/functions.php on line 401

    The new code is here

    https://wordpress.pastebin.ca/952861

    with the register sidebar code at the top.

    Thanks again it would be great if you could help further.

    Are you using the default kurbrick theme. Back up your functions.php and try having just this in the file. That’s all I have in mine currently, as i think most of the other stuff is related to the Default theme (i think) So back it up and try having only this in there:

    <?php
    if ( function_exists('register_sidebar') )
        register_sidebar();
    ?>
    Thread Starter horseracingsussed

    (@horseracingsussed)

    Hey xdesi

    Many Thanks my friend, that got it going.

    On reflection, when I read the automatic instructions again, it say just four lines. But then again it does not make it clear to clear the file and just have the four lines or whether to insert the four lines.

    Anyway, thanks very much again – you fixed it and I am now happy!

    No worries glad i could help ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Widgetizing a Theme’ is closed to new replies.