Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8045827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:39:03+00:00 2026-06-05T05:39:03+00:00

I have installed WordPress and have installed a child theme based on twentyeleven. I

  • 0

I have installed WordPress and have installed a child theme based on twentyeleven. I have added three template files to the directory containing the child theme. They are:

style.css

/*
Theme Name: Cinema Verde
Theme URI: http://wordpress.org/extend/themes/twentyeleven
Author: Arthur Ianuzzi - Omicron Marketing
Author URI: http://www.omicron-marketing.com
Description: Theme for Cinema Verde, child theme based on TwentyEleven
Version: 1.0
License: GNU General Public License
License URI: license.txt
Tags: dark, black, gray,  two-columns,  right-sidebar, fixed-width, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
Template: twentyeleven
*/
@import url('../twentyeleven/style.css');

custom-style.css

 #access { background: #000; border-top: 2px solid #84E41F; border-bottom: 2px solid #84E41F; }

#access a { color: #fff; }

#access a:focus { color: #fff;} 

#access ul ul :hover a { background: #000; color: #fff; }

#access li:hover a {color: #84E41F; background: #000; border-bottom: 0 ;  }

#branding #searchform {display:none; }

h1.entry-title {color: #84E41F;}

and functions.php

 <?php

/** Tell WordPress to run post_theme_setup() when the 'after_setup_theme' hook is run. */
add_action( 'after_setup_theme', 'post_theme_setup' );

if ( !function_exists( 'post_theme_setup' ) ):
function post_theme_setup() {

/* Add our new styles after all stylesheets have loaded */
function twentyeleven_enqueue_child_style() {
wp_enqueue_style( 'child_style', get_stylesheet_directory_uri() . '/custom-style.css', array(), null );
do_action( 'twentyeleven_enqueue_child_style', 'child_style' );
}
add_action( 'wp_enqueue_scripts', 'twentyeleven_enqueue_child_style', 11 );
}
endif;

?>

Everything works fine, except that when I’m in the dashboard and I change something, the confirmation page comes up blank. For example, if I write a new post, and click “Publish”, I get a blank page instead of a page showing me the post I just wrote.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T05:39:04+00:00Added an answer on June 5, 2026 at 5:39 am

    You run a function in a function, your code is broken….
    Turn on wp_debug and you will see the error.

    /** Tell WordPress to run post_theme_setup() when the 'after_setup_theme' hook is run. */
    add_action( 'after_setup_theme', 'post_theme_setup' );
    
    if ( !function_exists( 'post_theme_setup' ) ):
    function post_theme_setup() {
    
        wp_enqueue_style( 'child_style', get_stylesheet_directory_uri() . '/custom-style.css', array(), null );
        do_action( 'twentyeleven_enqueue_child_style', 'child_style' );
    
        add_action( 'wp_enqueue_scripts', 'twentyeleven_enqueue_child_style', 11 );
    }
    endif;
    
    ?>
    

    Side note:
    You do know including multiple stylesheets will make your site slower?
    Good that you are using the enqueue btw

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed a complete blank theme with no CSS in my new wordpress
Hi I have a wordpress theme installed on my website, http://www.my-cv.info , the problem
I have installed Wordpress and activated Mystique theme.I simply love the design and functionality
I have wordpress installed at the web root directory of a server. I also
I have wordpress site. I have installed modern-blue-green-120070612-2 theme.Then i got an error message
I have installed a Wordpress theme in /wp-content/themes/mytheme/ I then applied this theme to
I have just installed a custom WordPress theme (this is my first time working
In the WordPress 'Install Themes' option I have installed a theme called Facelook but
I have cakephp installed in the root directory. site.com/ i want to install wordpress
I have installed wordpress in root directory. There is a file say test.html in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.