Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Need CSS help – suppress entry-title on pages

Discussion in 'Misc WordPress Requests' started by gponym, Feb 2, 2018.

  1. gponym

    Guest

    Reply To: Need CSS help – suppress entry-title on pages, by gponym

    Luis, thanks. I tried both without luck. Each time after uploading style.css to the temp site provided by bluehost, I log out of bluehost, then log back in, and then log back in to WordPress.

    The CSS may be just fine. I can’t be certain I’m not being stymied by the potentially several caches, and I don’t know where all the caches might be besides at bluehost and at my browser. I’ve cleared the browser cache (Chrome) and restarted it but that did not help.

    At this point I must stop for at least 48 hours. I’ll try to figure out how to set the caching parameters in the admin menu provided by bluehost.

    If you have any other ideas, thanks in advance for sharing.

    My child theme has only two files: style.css and functions.php. Here are their complete contents, downloaded just now from the site:

    – style.css –

    /*
    Theme Name: Twenty Sixteen Child
    Description: Twenty Sixteen Child Theme
    Author: gp
    Template: twentysixteen
    Version: 1.0.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
    Text Domain: twentysixteen-abchild
    */

    /* Test inclusion of this style sheet */
    p { color: brown; }

    .home h1.entry-title { display:none !important; }


    – functions.php –

    <?php
    /*
    gp 1802xx load child and parent stylesheets
    */
    function my_theme_enqueue_styles() {

    $parent_style = 'twentysixteen-style';

    wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'child-style',
    get_stylesheet_directory_uri() . '/style.css',
    array( $parent_style ),
    wp_get_theme()->get('Version')
    );
    }
    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    ?>

    Reply To: Need CSS help – suppress entry-title on pages
     
    #1

Share This Page

Monarch Social Sharing Plugin