• Resolved WPrap

    (@wprap)


    Frustrated. Website https://www.firechaplain101.com
    theme: twentyeleven browser: firefox 36

    How to stop displaying page titles?

    used fireBUG to find what to change in css – then checked forum

    Initially changed parent style.css (added display: none; to
    entry-title) in WP-content … didn’t work but tried same thing several times then it suddenly started working – almost as if the cache was cleared (in browser or in WP or at Host – hosting at NetFirms)

    Here is my child style.css:
    /*
    Theme Name: Twenty Eleven Child
    Theme URI: https://fc101.netfirms.com/twentyeleven-child
    Description: Twenty Eleven Child Theme
    Author: RA Payne
    Author URI: https://www.firechaplain101.com
    Template: twentyeleven
    Text Domain: twentyeleven-child
    */
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    }
    .home .entry-header {
    display: none;
    }
    .entry-title, .entry-title a {
    display: none;
    }
    .page h1.entry-title {display: none;}

    As you can see, tried several things (from forum)

    What am I doing wrong ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • WPyogi

    (@wpyogi)

    This part is not CSS – it can’t go in a CSS file:

    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }

    It’s invalidating all your CSS that comes after that.

    The above code should go in your child theme functions.php file.

    Thread Starter WPrap

    (@wprap)

    WPyogi – thanks for the response

    Added the above to the 2011 functions.php and moved (using fireFTP) to my child and ‘executed’ the website but got a “500 Internal Server Error”

    Took out the above code (leaving functions.php as it was originally in the 2011 theme) and FTp’d it again, ‘executed’ website, got the same error.

    Do you think fireFTP is the problem? Transfer option is set to “Binary”(just changed option to Auto and got same error).

    WPyogi

    (@wpyogi)

    Added the above to the 2011 functions.php and moved (using fireFTP) to my child and ‘executed’ the website but got a “500 Internal Server Error”

    Yep, you can’t copy the entire parent functions file to the child theme!

    Looks like your site is still down – so remove that child theme – ask your hosts about FTP or Cpanel if they aren’t working for you.

    Thread Starter WPrap

    (@wprap)

    WPyogi – Thank you for PHP help (& straightening me out)

    Rest WAS a hosting service system problem – they fixed it quickly

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Stop displaying page title’ is closed to new replies.