Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1175872
    allcal
    Participant

    Is there a way to change the logo image for one specific page? I want to change the logo for https://www.ecsregisteredagent.com/cpa/ (page id: 845) to the image file: http://www.ecsregisteredagent.com/wp-content/uploads/2016/06/Screen-Shot-2016-06-21-at-5.15.30-PM-e1466567998134.png …..(I’m sure I will need to resize the image smaller)

    —–Update——
    I figured it out. Changed VIEWS/GLOBAL/_BRAND.PHP (below)……….

    ********My new question: Is there a way to make that logo change on every page for a user that is logged in as a “subscriber”?

    Basically if a “subscriber” in logged in to the site, the will see the logo from page 845 on every page and any other user not logged in or logged in as a different role will see the normal logo.

    
    <?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 if (is_page('845') ) : ?>
    <a href="http://example.com/" class="<?php x_brand_class(); ?>" title="<?php echo $get_description; ?>">
      <img src="http://www.ecsregisteredagent.com/wp-content/uploads/2016/06/Screen-Shot-2016-06-21-at-5.15.30-PM-e1466567998134.png"></a>
    
    <?php else : ?>
    <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>">
      <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?>
    </a>
    <?php endif; ?>
    
    
    #1176122
    Rupok
    Member

    Hey there,

    Thanks for writing in! Regretfully, this particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.

    Thank you for your understanding.

    #1176800
    allcal
    Participant

    It was super easy. I just changed the first if statement to user type not page.

    
    <?php if (current_user_can('cpa') ) : ?>
    <a href="https://www.ecsregisteredagent.com/cpa/" class="<?php x_brand_class(); ?>" title="<?php echo $get_description; ?>">
      <img src="http://www.ecsregisteredagent.com/wp-content/uploads/2016/06/Screen-Shot-2016-06-21-at-5.15.30-PM-e1466567998134.png"></a>
    
    <?php else : ?>
    <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>">
      <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?>
    </a>
    <?php endif; ?>
    
    #1177013
    Joao
    Moderator

    HI There,

    Glad to hear you found a solution and thanks for sharing with us it might indeed help another users.

    Thanks

    Joao

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