Tagged: x
-
AuthorPosts
-
January 28, 2017 at 9:53 am #1348915
CraigParticipantI’ve seen several posts regarding 2 h1 tags on a page. I’m not a developer; however, this is of course a theme issue. I will private message login details for an X Theme support rep to assist in removing the h1 tag on the header/logo. I’d like to keep the page title as the header.
January 28, 2017 at 9:56 am #1348918
CraigParticipantThis reply has been marked as private.January 28, 2017 at 12:05 pm #1348986
ThaiModeratorHi There,
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Then navigate to your child theme’s /framework/views/global directory create a file named _brand.php and paste the code below:<?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 . '">'; ?> <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>"> <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?> </a>Hope it helps 🙂
January 28, 2017 at 12:48 pm #1348996
CraigParticipantThank you Thai. This worked perfectly!
January 28, 2017 at 11:07 pm #1349302
ChristopherModeratorYou’re welcome.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1348915 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
