Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #874379

    kamranazad
    Participant

    Hi Theme-X!

    I’m trying to add an image next to my header logo, but when adding the below code to my child theme; x/framework/views/global/_brand.php the main logo appears twice instead of once. Any idea why?

    Thanks!

    <?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 = ‘' . $site_description . '‘;

    ?>

    <?php echo ( is_front_page() ) ? ‘<h1 class=”visually-hidden”>’ . $site_name . ‘</h1>’ : ”; ?>

    ” class=”<?php x_brand_class(); ?>” title=”<?php echo $site_description; ?>”>
    <?php echo ( $logo == ” ) ? $site_name : $site_logo; ?>

    #874881

    Christian
    Moderator

    Hey there,

    Regretfully we cannot support any modifications to the header other than minor cosmetic changes due to the fact that X is a highly dynamic theme with many elements being constructed on the fly based on options in the Customizer. Among these, the header is one of the more complex elements of the theme and structural modifications to it will likely lead to numerous layout problems as there are a lot of things to take into consideration because of X’s responsive nature. Taking all of this into consideration, these types of updates are out of the scope of our support as their involvement is simply too great. While we would love to be able to assist all of our users with every customization request, the simple reality is that we cannot cater to every inquiry. Additionally, we will not be able to support any issues that might arise from modifications made to this area on your own.

    Thank you for your understanding.

    #875282

    kamranazad
    Participant

    Absolutely!

    Thanks for letting me know.

    #875830

    Rue Nel
    Moderator

    You are most welcome!