Tagged: x
-
AuthorPosts
-
October 29, 2016 at 3:14 pm #1236142
MikeMobley2002ParticipantHow can I add a page title and maybe desc. on this resources page? I don’t see the option for it.
http://www.insurancefortexans.com/resources/
I’ll reply with credentials.
October 29, 2016 at 3:15 pm #1236144
MikeMobley2002ParticipantThis reply has been marked as private.October 30, 2016 at 12:59 am #1236380
Rue NelModeratorHello There,
Thanks for writing in! By default, Ethos stack doesn’t have the ability to display a blog page title. In order to do that, we need to customize the blog index template. Since you have your child theme active and ready, please follow the following steps below:
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new file<?php // ============================================================================= // VIEWS/ETHOS/_LANDMARK-HEADER.PHP // ----------------------------------------------------------------------------- // Handles content output of large headers for key pages such as the blog or // search results. // ============================================================================= $disable_page_title = get_post_meta( get_the_ID(), '_x_entry_disable_page_title', true ); ?> <?php if ( ! x_is_blank( 1 ) && ! x_is_blank( 2 ) && ! x_is_blank( 4 ) && ! x_is_blank( 5 ) ) : ?> <?php if ( is_page() && $disable_page_title == 'on' ) : ?> <?php else : ?> <?php if ( is_home() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark entry-title"><span>Resources</span></h1> </header> <?php elseif ( x_is_shop() || x_is_product() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo x_get_option( 'x_ethos_shop_title' ); ?></span></h1> </header> <?php elseif ( x_is_bbpress() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo get_the_title(); ?></span></h1> </header> <?php elseif ( x_is_buddypress() ) : ?> <?php if ( x_buddypress_is_component_with_landmark_header() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo x_buddypress_get_the_title(); ?></span></h1> </header> <?php endif; ?> <?php elseif ( is_page() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark entry-title"><span><?php the_title(); ?></span></h1> </header> <?php elseif ( x_is_portfolio_item() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php the_title(); ?></span></h1> </header> <?php elseif ( is_search() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); ?></span></h1> </header> <?php elseif ( is_category() || x_is_portfolio_category() || x_is_product_category() ) : ?> <?php $meta = x_get_taxonomy_meta(); $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Category Archive', '__x__' ); ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo $title; ?></span></h1> </header> <?php elseif ( is_tag() || x_is_portfolio_tag() || x_is_product_tag() ) : ?> <?php $meta = x_get_taxonomy_meta(); $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Tag Archive', '__x__' ); ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo $title ?></span></h1> </header> <?php elseif ( is_404() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php _e( 'Oops!', '__x__' ); ?></span></h1> </header> <?php elseif ( is_year() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php _e( 'Post Archive by Year', '__x__' ); ?></span></h1> </header> <?php elseif ( is_month() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php _e( 'Post Archive by Month', '__x__' ); ?></span></h1> </header> <?php elseif ( is_day() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php _e( 'Post Archive by Day', '__x__' ); ?></span></h1> </header> <?php elseif ( x_is_portfolio() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo x_get_option( 'x_portfolio_title' ); ?></span></h1> </header> <?php endif; ?> <?php endif; ?> <?php endif; ?>3] Save the file named as
_landmark-header.php
4] Upload this file to your server in the child theme’s folder
wp-content/themes/x-child/framework/views/ethos/Hope this helps.
October 30, 2016 at 8:24 am #1236612
MikeMobley2002ParticipantI did this exactly and all it did was show this code all over the home page at the top.
October 30, 2016 at 3:57 pm #1236942
RadModeratorHi there?
What code, would you mind providing a screenshot?
Thanks!
October 30, 2016 at 4:04 pm #1236947
MikeMobley2002ParticipantI made the file just like you said, and uploaded it. Then the website showed the contents of this PHP file on the home page. It was an error. Attached the pic.
October 30, 2016 at 9:39 pm #1237277
Rue NelModeratorHello There,
That should be the case. Would you mind providing us the ftp login credentials so we can take a closer look?
To do this, you can make a post with the following info:
– FTP Hostname
– FTP Username
– FTP PasswordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thank you.
October 30, 2016 at 9:58 pm #1237286
MikeMobley2002ParticipantThis reply has been marked as private.October 31, 2016 at 12:50 am #1237418
Paul RModeratorHi,
Thank you for providing your ftp login credentials.
Though I am not sure where your site files is located.
Can you provide us the directory/folder of your site.
Thanks
October 31, 2016 at 9:34 am #1237898
MikeMobley2002ParticipantWhat?
The site name is insurancefortexans.com and there’s only one install of WP on there. Can you guys not find that within FTP?
October 31, 2016 at 10:40 pm #1238678
LelyModeratorHi Mike,
I am able to find it. I did upload the file _landmark-header.php on this path:/public_html/wp-content/themes/x-child/framework/views/ethos.
The content was this:<?php // ============================================================================= // VIEWS/ETHOS/_LANDMARK-HEADER.PHP // ----------------------------------------------------------------------------- // Handles content output of large headers for key pages such as the blog or // search results. // ============================================================================= $disable_page_title = get_post_meta( get_the_ID(), '_x_entry_disable_page_title', true ); ?> <?php if ( ! x_is_blank( 1 ) && ! x_is_blank( 2 ) && ! x_is_blank( 4 ) && ! x_is_blank( 5 ) ) : ?> <?php if ( is_page() && $disable_page_title == 'on' ) : ?> <?php else : ?> <?php if ( is_home() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark entry-title"><span>Resources</span></h1> </header> <?php elseif ( x_is_shop() || x_is_product() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo x_get_option( 'x_ethos_shop_title' ); ?></span></h1> </header> <?php elseif ( x_is_bbpress() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo get_the_title(); ?></span></h1> </header> <?php elseif ( x_is_buddypress() ) : ?> <?php if ( x_buddypress_is_component_with_landmark_header() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo x_buddypress_get_the_title(); ?></span></h1> </header> <?php endif; ?> <?php elseif ( is_page() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark entry-title"><span><?php the_title(); ?></span></h1> </header> <?php elseif ( x_is_portfolio_item() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php the_title(); ?></span></h1> </header> <?php elseif ( is_search() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); ?></span></h1> </header> <?php elseif ( is_category() || x_is_portfolio_category() || x_is_product_category() ) : ?> <?php $meta = x_get_taxonomy_meta(); $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Category Archive', '__x__' ); ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo $title; ?></span></h1> </header> <?php elseif ( is_tag() || x_is_portfolio_tag() || x_is_product_tag() ) : ?> <?php $meta = x_get_taxonomy_meta(); $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Tag Archive', '__x__' ); ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo $title ?></span></h1> </header> <?php elseif ( is_404() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php _e( 'Oops!', '__x__' ); ?></span></h1> </header> <?php elseif ( is_year() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php _e( 'Post Archive by Year', '__x__' ); ?></span></h1> </header> <?php elseif ( is_month() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php _e( 'Post Archive by Month', '__x__' ); ?></span></h1> </header> <?php elseif ( is_day() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php _e( 'Post Archive by Day', '__x__' ); ?></span></h1> </header> <?php elseif ( x_is_portfolio() ) : ?> <header class="x-header-landmark x-container max width"> <h1 class="h-landmark"><span><?php echo x_get_option( 'x_portfolio_title' ); ?></span></h1> </header> <?php endif; ?> <?php endif; ?> <?php endif; ?>I am not sure what’s wrong when you did it but it is working now. See attached screenshot.
November 1, 2016 at 3:13 pm #1239718
MikeMobley2002ParticipantOk thank you.
November 1, 2016 at 8:00 pm #1240089
NicoModeratorLet us know how it goes.
Feel free to ask us again.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1236142 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
