• My site is couponsforfun2.com (which I’m trying to rebuild in WordPress from couponsforfun.com which was built in iWeb).
    I was trying to change the size and position of a right sidebar in WP. In forums it said to adjust width of sidebar widget and content in style.css. And it would be possible to adjust the position of the sidebar on page by adjusting the 0 0 0 0 settings. I didn’t find anything in style.css that showed width so I added a width line (copied from a forum) to what looked like the right place for content and sidebar. It seems I broke my site. When I go to couponsforfun2.com, I get a bunch of junk at the top of the page that says this:
    /** * Register widget area. * * @link http://codex.wordpress.org/Function_Reference/register_sidebar */ function tesseract_widgets_init() { register_sidebar( array( ‘name’ => __( ‘Primary Sidebar’, ‘tesseract’ ), ‘id’ => ‘sidebar-1’, ‘description’ => __( ‘Appears on the left.’, ‘tesseract’ ), ‘before_widget’ => ‘
    ‘, ‘after_widget’ => ‘
    ‘, ‘before_title’ => ‘
    ‘,› ‘after_title’ => ‘
    ‘, ) ); } add_action( ‘widgets_init’, ‘tesseract_widgets_init’ ); /**

    And when I go to my wp-admin page it’s all white, except for this:
    /** * Register widget area. * * @link http://codex.wordpress.org/Function_Reference/register_sidebar */ function tesseract_widgets_init() { register_sidebar( array( ‘name’ => __( ‘Primary Sidebar’, ‘tesseract’ ), ‘id’ => ‘sidebar-1’, ‘description’ => __( ‘Appears on the left.’, ‘tesseract’ ), ‘before_widget’ => ‘
    ‘, ‘after_widget’ => ‘
    ‘, ‘before_title’ => ‘
    ‘,› ‘after_title’ => ‘
    ‘, ) ); } add_action( ‘widgets_init’, ‘tesseract_widgets_init’ ); /**
    Warning: Cannot modify header information – headers already sent by (output started at /home1/marj0rieann/public_html/wp-content/themes/Tesseract-child/functions.php:33) in /home1/marj0rieann/public_html/wp-includes/pluggable.php on line 1207

    I’m using the tesseract-child theme. This morning Hostgator said they reset my site and I could get back into the Tesseract theme but the child theme was still bad, even though I had put the codes back the way they were originally. I changed the theme to the child theme but have the same problem described above so can’t get to wp-admin to change themes.

    Can anyone help me get back to the wp-admin page, then tell me where I should make change to code to make sidebar narrower and to move it down on the page?

    Thanks so much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • David_G

    (@questas_admin)

    You have a conflict in your child theme’s function file. You can FTP to your wp-content/themes folder and disable your child theme by adding .bak to it’s folder OR go into your child theme folder and rename the functions.php file to functions.bak, that should temporarily fix the issue and you can then find the problem with your functions file.

    Thread Starter teddywade

    (@teddywade)

    Thank you very much. I can now access wp-admin! After I fix problem, am I to change it back to functions.php with the FTP?

    Most of the junk at the top of couponsforfun2.com is gone now, except for “Skip to Content”. Any ideas on getting rid of that?

    My problem with junk at top and losing wp-admin started when I made change below. It’s now back to the original. Any ideas on where to change the size and position of the theme’s sidebar since what I did below didn’t work, and caused other problems?

    ORIGINAL:
    /* =18. Widgets
    ————————————————————– */

    .widget-area a {
    color: #82888a;
    text-decoration: none;
    }

    /* === Template with Right Sidebar === */
    .content-area.left{
    float: left!important;
    }
    .widget-area.right{
    float: right!important;
    }

    CHANGED TO THIS:
    /* =18. Widgets
    ————————————————————– */

    .widget-area a {
    color: #82888a;
    text-decoration: none;
    }

    /* === Template with Right Sidebar === */
    .content-area.left{
    float: left!important;
    width:810px;
    }
    .widget-area.right{
    float: right!important;
    width:125px;
    }

    Which section in the theme’s index below should I look for the place to adjust the position and size of sidebar:
    01. CSS Reset (Normalize)
    02. Theme Base
    03. Clearfix
    04. Global margins and paddings
    05. Text-level semantics
    06. Headings
    07. Forms
    08. Buttons
    09. Tables
    10. Links
    11. Header area
    12. Layout
    13. Menus
    14. Icons (separate folder)
    15. Accessibility
    16. Embedded content
    17. WordPress core styles
    18. Widgets
    19. Content
    20. Asides
    21. Comments
    22. Infinite scroll (Jetpack plugin)
    23. Footer
    24. Plugins
    25. Responsive design
    26. Print styles

    Or should I use a sidebar plugin and forget about the theme’s primary and secondary sidebars?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘can't access my wp-admin page’ is closed to new replies.