Tagged: x
-
AuthorPosts
-
June 16, 2016 at 11:34 am #1045475
mathijs84ParticipantHi 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
June 16, 2016 at 11:49 am #1045501
mathijs84ParticipantThis reply has been marked as private.June 16, 2016 at 1:04 pm #1045597
RupokMemberHi 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!
June 16, 2016 at 3:26 pm #1045820
mathijs84ParticipantHi could you try to login with this link: http://www.jtermaatstukadoors.nl/wp/wp-login.php
June 16, 2016 at 5:34 pm #1046022
FriechModeratorHi 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!
June 17, 2016 at 1:08 am #1046555
mathijs84ParticipantThanks!!
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 ?
June 17, 2016 at 1:29 am #1046571
RupokMemberHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1045475 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
