Forum Replies Created

Viewing 5 replies - 46 through 50 (of 50 total)
  • Thread Starter Robert

    (@rsterry48)

    No. That didn’t work alas. No Main Menu created. No errors either.

    Here’s my code:

    add_action('after_setup_theme', function () {
    // Register Menu Locations
    register_nav_menus( [
      'main-menu' => esc_html__( 'Main Menu', 'wphierarchy' ),
    ]);
    });
    • This reply was modified 3 years, 7 months ago by bcworkz.
    Thread Starter Robert

    (@rsterry48)

    Thanks heaps. Will give it a go.

    Thread Starter Robert

    (@rsterry48)

    Thanks for getting back. I don’t think that code is within an action hook callback. Unless it’s in the header.php. There’s nothing like that in the functions.php file. Here’s the complete code in functions.php. Remember I’m on my Ls.

    <?php
    
    // Add Theme Support
    add_theme_support( 'title-tag' );
    add_theme_support( 'post-thumbnails' );
    add_theme_support( 'post_format', ['aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat'] );
    add_theme_support( 'html5' );
    add_theme_support( 'automatic-feed-links' );
    add_theme_support( 'custom-background' );
    add_theme_support( 'custom-header' );
    add_theme_support( 'custom-logo' );
    add_theme_support( 'customize-selective-refresh-widgets' );
    add_theme_support( 'starter-content' );
    
    // Load in our CSS
    function wphierarchy_enqueue_styles() {
    
      wp_enqueue_style( 'main-css', get_stylesheet_directory_uri() . '/style.css', [], time(), 'all' );
    
    }
    add_action( 'wp_enqueue_scripts', 'wphierarchy_enqueue_styles' );
    
    // Register Menu Locations
    register_nav_menus( [
      'main-menu' => esc_html__( 'Main Menu', 'wphierarchy' ),
    ]);
    
    ?>
    • This reply was modified 3 years, 7 months ago by bcworkz.

    Hi Vinny
    Your fix for the Subject line UTF-8 encoding error when using quotes works well. Many thanks for the work you put into it.
    Kind regards
    Robert Sterry [Guild of One-Name Studies Web Team]

    Thread Starter Robert

    (@rsterry48)

    Yes. I’m the same Robert and the one who sent the message. Thank you for explaining the problem.

    Thanks for getting back. I don’t know why the email bounced. Did you send it to
    ?
    [email protected]?
    ?
    If that email is a problem, my personal email is [email protected]

    I’ll now transfer this ticket now back to you.

    Robert

Viewing 5 replies - 46 through 50 (of 50 total)