Tagged: x
-
AuthorPosts
-
September 14, 2016 at 8:49 pm #1175872
allcalParticipantIs 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; ?>September 15, 2016 at 1:19 am #1176122
RupokMemberHey 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.
September 15, 2016 at 11:02 am #1176800
allcalParticipantIt 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; ?>September 15, 2016 at 1:33 pm #1177013
JoaoModeratorHI There,
Glad to hear you found a solution and thanks for sharing with us it might indeed help another users.
Thanks
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1175872 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
