Tagged: x
-
AuthorPosts
-
December 15, 2016 at 2:17 pm #1294698
peterhoejlundParticipantHey X-theme.
I really like your theme and the customization.
Now i’ve run into a problem.
I can’t get my shop or category pages to show their headline.
I tried to enable my custom css, so i could see, if i’ve removed it that way and later forgot, but nothing happened. And i tried under customize>Renew>’Shop Title’ changing letters, saving – but nothing happened. Also, i tried enable, disable, removing cache.My domain is:
http://nani.dkYou can push the first menu-link ‘alle-varer’ that is the main shop-window.
The other ‘vitaminer og mineraler’, ‘helsepakker’ og ‘ren lakseolie’ are product categories.I hope you can help.
Best PeterDecember 15, 2016 at 3:24 pm #1294792
FriechModeratorHi Peter,
Thanks for writing in! Have you done a customisation to your header-landmark template? Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
If the meantime please clear and disable your autoptimize plugin and any caching plugin and see if that resolves the issue.
Cheers!
December 16, 2016 at 8:55 am #1295657
peterhoejlundParticipantThis reply has been marked as private.December 16, 2016 at 3:58 pm #1296037
RadModeratorHi there,
It’s because of custom template in your child theme, I disabled it and removed this CSS
.x-landmark { display: none !important; }And I had to disable Autoptimize plugin since these changes isn’t taking effect, clearing its cache won’t help either. You’re hosted on WPEngine which has built-in cache feature, adding another cache plugin is overkill. And it will only cache the existing cache and causes more issues.
You can enable the plugin back, just make sure the cache are cleared on both ends, which sometimes not taking effect.
Thanks!
December 17, 2016 at 1:19 am #1296413
peterhoejlundParticipantThank you so much!
Maybe that’s why i couldn’t see it. I think i tried removing that line of css, but if Autoptimize was in the way for a refresh.
Thank you for your help.December 17, 2016 at 1:30 am #1296415
ChristopherModeratorYou’re welcome.
December 17, 2016 at 3:51 am #1296468
peterhoejlundParticipantOkay. Chirstopher.
I have one last question.
is there someway that i can get the .h-landmark h1 to display the product-title, not the shop-title, when you’re visiting a single-product-page?
I know how to remove the product-title with a filter, but i can’t get the page-title to change?
I can’t seem to ‘hit’ it.
Maybe you have an idea`?Best
December 17, 2016 at 4:20 am #1296482
ChristopherModeratorHi there,
Copy _landmark-header.php from framework/views/renew and put it in the same path inside child theme, replace existing code with following :
<?php // ============================================================================= // VIEWS/RENEW/_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 ); $breadcrumbs = x_get_option( 'x_breadcrumb_display' ); ?> <?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 : ?> <header class="x-header-landmark"> <div class="x-container max width"> <div class="x-landmark-breadcrumbs-wrap"> <div class="x-landmark"> <?php if ( x_is_product() ) : ?> <h1 class="h-landmark"><span><?php the_title(); ?></span></h1> <?php elseif ( x_is_shop() ): ?> <h1 class="h-landmark"><span><?php echo x_get_option( 'x_renew_shop_title' ); ?></span></h1> <?php elseif ( x_is_bbpress() ) : ?> <h1 class="h-landmark"><span><?php echo get_the_title(); ?></span></h1> <?php elseif ( x_is_buddypress() ) : ?> <?php if ( x_buddypress_is_component_with_landmark_header() ) : ?> <h1 class="h-landmark"><span><?php echo x_buddypress_get_the_title(); ?></span></h1> <?php endif; ?> <?php elseif ( is_page() ) : ?> <h1 class="h-landmark entry-title"><span><?php the_title(); ?></span></h1> <?php elseif ( is_home() || is_single() ) : ?> <?php if ( x_is_portfolio_item() ) : ?> <h1 class="h-landmark"><span><?php echo x_get_parent_portfolio_title(); ?></span></h1> <?php else : ?> <h1 class="h-landmark"><span><?php echo x_get_option( 'x_renew_blog_title' ); ?></span></h1> <?php endif; ?> <?php elseif ( is_search() ) : ?> <h1 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); ?></span></h1> <?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__' ); ?> <h1 class="h-landmark"><span><?php echo $title; ?></span></h1> <?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__' ); ?> <h1 class="h-landmark"><span><?php echo $title ?></span></h1> <?php elseif ( is_404() ) : ?> <h1 class="h-landmark"><span><?php _e( 'Oops!', '__x__' ); ?></span></h1> <?php elseif ( is_year() ) : ?> <h1 class="h-landmark"><span><?php _e( 'Post Archive by Year', '__x__' ); ?></span></h1> <?php elseif ( is_month() ) : ?> <h1 class="h-landmark"><span><?php _e( 'Post Archive by Month', '__x__' ); ?></span></h1> <?php elseif ( is_day() ) : ?> <h1 class="h-landmark"><span><?php _e( 'Post Archive by Day', '__x__' ); ?></span></h1> <?php elseif ( x_is_portfolio() ) : ?> <h1 class="h-landmark"><span><?php the_title(); ?></span></h1> <?php endif; ?> </div> <?php if ( $breadcrumbs == '1' ) : ?> <?php if ( ! is_front_page() && ! x_is_portfolio() ) : ?> <div class="x-breadcrumbs-wrap"> <?php x_breadcrumbs(); ?> </div> <?php endif; ?> <?php endif; ?> <?php if ( x_is_portfolio() ) : ?> <div class="x-breadcrumbs-wrap"> <?php x_portfolio_filters(); ?> </div> <?php endif; ?> </div> </div> </header> <?php endif; ?> <?php endif; ?>Hope it helps.
December 17, 2016 at 4:36 am #1296490
peterhoejlundParticipantI was just about to write you.
Perfect. It’s the same thing i figured out.
Thank you for your help!
Have a nice day.December 17, 2016 at 4:50 am #1296500
ThaiModeratorIf you need anything else please let us know.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1294698 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
