Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1045475
    mathijs84
    Participant

    Hi guys,

    In this threat i replied, but was advised to make a seperate topic with mu details.
    I checked and the brand file is in the correct location.

    My original message was

    Hi guys,

    I was looking for this as well.

    I had this working, but after updating the Theme it doesn’t seem to work anymore.

    On http://www.jtermaatstukadoors.nl i have the _brand.php file and changed the h1 to h2.

    But i still get the page title as h1 instead of h2.

    This is the code i use:

    And the code:

    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_BRAND.PHP
    // -----------------------------------------------------------------------------
    // Outputs the brand.
    // =============================================================================
    
    $site_name        = get_bloginfo( 'name' );
    $site_description = get_bloginfo( 'description' );
    $logo             = x_make_protocol_relative( x_get_option( 'x_logo' ) );
    $site_logo        = '<img src="' . $logo . '" alt="' . $site_description . '">';
    
    ?>
    
    <?php /*echo ( is_front_page() ) ? '<h2 class="visually-hidden">' . $site_name . '</h2>' : '';*/ ?>
    
    <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>">
      <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?>
    </a>

    I will send login details in a next reply

    #1045501
    mathijs84
    Participant
    This reply has been marked as private.
    #1045597
    Rupok
    Member

    Hi there,

    Thanks for writing in! I have checked your code and it seems fine so not sure why it’s not working. I’d like to check the WordPress admin as well but couldn’t login. Not returning any error rather the login page again and again. Kindly check and let us know.

    Cheers!

    #1045820
    mathijs84
    Participant

    Hi could you try to login with this link: http://www.jtermaatstukadoors.nl/wp/wp-login.php

    #1046022
    Friech
    Moderator

    Hi There,

    Thanks for the credentials. I did take time to look on this and notice that you place the _brand.php file in this directory: /wp-content/themes/x-child/framework/views/global/

    But your WordPress installation files location is here: /wp/wp-content/themes/x-child/framework/views/global/

    I did copy the _brand.php file on that directory and it did remove the <h1 class="visually-hidden"> on the front end.

    Hope it helps, Cheers!

    #1046555
    mathijs84
    Participant

    Thanks!!

    I checked the code and it says <?php /*echo ( is_front_page() ) ? ‘<h2 class=”visually-hidden”>’ . $site_name . ‘</h2>’ : ”;*/ ?>

    But the heading is gone instead of changed from h1 to h2.

    Is it also possible to change it to h2 ?

    #1046571
    Rupok
    Member

    Hi there,

    If you notice your code then you will see you have commented out the code :

    <?php /*echo ( is_front_page() ) ? '<h2 class="visually-hidden">' . $site_name . '</h2>' : '';*/ ?>

    To display h2, you need to take off the comment :

    <?php echo ( is_front_page() ) ? '<h2 class="visually-hidden">' . $site_name . '</h2>' : ''; ?>

    You did that (as I can see that on your original post) and I thought it was intentional as you might want to remove the tag completely. Let’s change this to get expected result.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1045475 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>