• Resolved keyaziz

    (@keyaziz)


    I have tried widgetizing the box set 1.2 theme but with no luck.

    This is how my side bar file looks (to me a mess):

    https://wordpress.pastebin.ca./855031

    and this is my functions file:

    <?php
    if ( function_exists(‘register_sidebar’) )
    register_sidebar(array(
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<div class=”title”>’,
    ‘after_title’ => ‘</div>’,
    ));
    ?>

    I did search posts on here..but ive tried everything that i have read with no luck. Am i missing something.

    Thank you for your help…really appreciate it.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Repaste your sidebar code to the pastebin and report back the link.

    Thread Starter keyaziz

    (@keyaziz)

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Put this in functions.php:

    <?php
    if ( function_exists('register_sidebar') )
        register_sidebar(array(
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<h3 class="widgettitle">',
            'after_title' => '</h3>',
        ));
    ?>

    And put this in as your sidebar.php:
    https://wordpress.pastebin.ca/855231

    Note that the CSS will need some modification, because the existing sidebar was invalid. It had several items with ID’s of “box”, which is incorrect. You may want to change the CSS to replace #box with .widget instead.

    Thread Starter keyaziz

    (@keyaziz)

    Hey,

    thank you so much for your help.

    I did all this, and changed the css but it still doesnt lewt me use the widget tab in wordpress?

    thanks very much.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Make sure that you have the latest version of WordPress.

    Thread Starter keyaziz

    (@keyaziz)

    i do!

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Well then I don’t know what to tell you. Go to Presentation->Sidebar Widgets and arrange your widgets. That’s it. There’s nothing else to be done.

    Thread Starter keyaziz

    (@keyaziz)

    Ok but it says no sidebar is defined…

    I will try and see if I can do something.

    Thanks for all your help.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    it says no sidebar is defined…

    Then you did not put that code above into your theme’s functions.php file. Make sure you spelled the name of the file correctly, it must be “functions.php” and it must be in your active theme’s directory.

    Thread Starter keyaziz

    (@keyaziz)

    awww thanksssssssssssssss tonnes.

    the problem was the file was called functions(2).php – i had to create a functions file because the theme didnt have one and it was named that..i changed that and now it works.

    thanks for your help and patience ??

    this helped me as well. thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Widgetizing theme (box set 1.2)’ is closed to new replies.