Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1413024

    TaverasJose
    Participant

    Hi. I am having this error on the cellphone size screen on my Category Landmark.
    I followed other forums here to install it.
    How do I get rid of that?

    #1413382

    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! This error may have came from the template. Did you make any modifications to a template that you may have added in your child theme? Would you mind providing us the url of your site with login credentials so we can take a closer look and fix the issue? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    To do this, you can make a post with the following info:
    – FTP Hostname
    – FTP Username
    – FTP Password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thank you.

    #1413758

    TaverasJose
    Participant
    This reply has been marked as private.
    #1413935

    Thai
    Moderator

    Hi There,

    Everything is fine now.

    Someone forgot to remove the debug code.

    Regards!

    #1414438

    TaverasJose
    Participant

    Thank you so much

    #1414511

    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again

    Thanks.

    #1414853

    TaverasJose
    Participant

    Hi sorry, but I see now that my Catergory Landmark is not showing anymore!!

    #1415241

    Thai
    Moderator

    Hi There,

    It seems to work fine on my end:

    View post on imgur.com

    Could you please provide us with your screenshots?

    Thanks.

    #1415248

    TaverasJose
    Participant

    No it does not!.
    There needs to be a category description Landmark there!! Not just the title and subtitle.

    LOOK at the begining for this thread, not just this last post.
    I had fixed the site using instructions on this forum so the landmark description would show but it was
    giving me errors, so you guys fixed the erros but now the landmark description does not show!

    #1415949

    Lely
    Moderator

    Hi There,

    From the first post image:https://s3.amazonaws.com/community-themeco/app/uploads/2017/03/19191427/image13.png what I am seeing that is missing currently is the breadcrumb only(HOme icon and category with link). Is that what you’re looking for? Go to Appearance > Customize > Header > Navbar Top Height (px): Add 70

    Hope this helps.

    #1416396

    TaverasJose
    Participant

    No,this is definetly not working:

    I followed the intructions on this forum to expand the theme and be able to write and present category description landmarks using this:

    ___________________________________________________________________________________________

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/_LANDMARK-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Handles content output of large headers for key pages such as the blog or
    // search results.
    // =============================================================================
    
    ?>
    
    <?php if ( is_home() && x_get_option( 'x_integrity_blog_header_enable' ) == 1 ) : ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php echo x_get_option( 'x_integrity_blog_title' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo x_get_option( 'x_integrity_blog_subtitle' ); ?></span></p>
      </header>
    
    <?php elseif ( is_search() ) : ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll see everything we could locate for your search of ", '__x__' ); echo '<strong>&ldquo;'; the_search_query(); echo '&rdquo;</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( is_category() || x_is_portfolio_category() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Category Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all posts that have been categorized as ", '__x__' ) . '<strong>&ldquo;' . single_cat_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php echo $title ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle ?></span></p>
      </header>
    
    <?php elseif ( x_is_product_category() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Category Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all items that have been categorized as ", '__x__' ) . '<strong>&ldquo;' . single_cat_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php echo $title ?></span></h1>
        <p class="p-landmark-description"><span><?php echo category_description(); ?></span></p>
      </header>
    
    <?php elseif ( is_tag() || x_is_portfolio_tag() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Tag Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all posts that have been tagged as ", '__x__' ) . '<strong>&ldquo;' . single_tag_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php echo $title; ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle; ?></span></p>
      </header>
    
    <?php elseif ( x_is_product_tag() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Tag Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all items that have been tagged as ", '__x__' ) . '<strong>&ldquo;' . single_tag_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php echo $title; ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle; ?></span></p>
      </header>
    
    <?php elseif ( is_404() ) : ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php _e( 'Oops!', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "You blew up the Internet. ", '__x__' ); ?></span></p>
      </header>
    
    <?php elseif ( is_year() ) : ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php _e( 'Post Archive by Year', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll find a list of all posts from ", '__x__' ); echo '<strong>'; echo get_the_date( 'Y' ); echo '</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( is_month() ) : ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php _e( 'Post Archive by Month', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll find a list of all posts from ", '__x__' ); echo '<strong>'; echo get_the_date( 'F, Y' ); echo '</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( is_day() ) : ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php _e( 'Post Archive by Day', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll find a list of all posts from ", '__x__' ); echo '<strong>'; echo get_the_date( 'F j, Y' ); echo '</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( x_is_portfolio() ) : ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php the_title(); ?></span></h1>
        <?php x_portfolio_filters(); ?>
      </header>
    
    <?php elseif ( x_is_shop() && x_get_option( 'x_integrity_shop_header_enable' ) == 1 ) : ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php echo x_get_option( 'x_integrity_shop_title' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo x_get_option( 'x_integrity_shop_subtitle' ); ?></span></p>
      </header>
    
    <?php elseif ( x_is_buddypress() ) : ?>
      <?php if ( x_buddypress_is_component_with_landmark_header() ) : ?>
    
        <header class="x-header-landmark x-container-fluid max width">
          <h1 class="h-landmark"><span><?php echo x_buddypress_get_the_title(); ?></span></h1>
          <p class="p-landmark-sub"><span><?php echo x_buddypress_get_the_subtitle(); ?></span></p>
        </header>
    
      <?php endif; ?>
    <?php endif; ?>

    _______________________________________________________________________________________
    I did this and it was working, but it was giving me the error that THIS post presents.
    You guys helped me, and the error went away, but then the Category Description is no longer showing.

    #1417155

    Rad
    Moderator

    Hi there,

    Is it supposed to be product category or post category? I checked the code and the category description is added in product section.

    Please try this

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/_LANDMARK-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Handles content output of large headers for key pages such as the blog or
    // search results.
    // =============================================================================
    
    ?>
    
    <?php if ( is_home() && x_get_option( 'x_integrity_blog_header_enable' ) == 1 ) : ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php echo x_get_option( 'x_integrity_blog_title' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo x_get_option( 'x_integrity_blog_subtitle' ); ?></span></p>
      </header>
    
    <?php elseif ( is_search() ) : ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll see everything we could locate for your search of ", '__x__' ); echo '<strong>&ldquo;'; the_search_query(); echo '&rdquo;</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( is_category() || x_is_portfolio_category() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Category Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all posts that have been categorized as ", '__x__' ) . '<strong>&ldquo;' . single_cat_title( '', false ) . '&rdquo;</strong>';
    
      ?>
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php echo $title ?></span></h1>
        <p class="p-landmark-description"><span><?php echo category_description(); ?></span></p>
      </header>
    
    <?php elseif ( x_is_product_category() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Category Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all items that have been categorized as ", '__x__' ) . '<strong>&ldquo;' . single_cat_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php echo $title ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle ?></span></p>
      </header>
    
    <?php elseif ( is_tag() || x_is_portfolio_tag() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Tag Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all posts that have been tagged as ", '__x__' ) . '<strong>&ldquo;' . single_tag_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php echo $title; ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle; ?></span></p>
      </header>
    
    <?php elseif ( x_is_product_tag() ) : ?>
    
      <?php
    
      $meta     = x_get_taxonomy_meta();
      $title    = ( $meta['archive-title']    != '' ) ? $meta['archive-title']    : __( 'Tag Archive', '__x__' );
      $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all items that have been tagged as ", '__x__' ) . '<strong>&ldquo;' . single_tag_title( '', false ) . '&rdquo;</strong>';
    
      ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php echo $title; ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo $subtitle; ?></span></p>
      </header>
    
    <?php elseif ( is_404() ) : ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php _e( 'Oops!', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "You blew up the Internet. ", '__x__' ); ?></span></p>
      </header>
    
    <?php elseif ( is_year() ) : ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php _e( 'Post Archive by Year', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll find a list of all posts from ", '__x__' ); echo '<strong>'; echo get_the_date( 'Y' ); echo '</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( is_month() ) : ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php _e( 'Post Archive by Month', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll find a list of all posts from ", '__x__' ); echo '<strong>'; echo get_the_date( 'F, Y' ); echo '</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( is_day() ) : ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php _e( 'Post Archive by Day', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll find a list of all posts from ", '__x__' ); echo '<strong>'; echo get_the_date( 'F j, Y' ); echo '</strong>'; ?></span></p>
      </header>
    
    <?php elseif ( x_is_portfolio() ) : ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php the_title(); ?></span></h1>
        <?php x_portfolio_filters(); ?>
      </header>
    
    <?php elseif ( x_is_shop() && x_get_option( 'x_integrity_shop_header_enable' ) == 1 ) : ?>
    
      <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php echo x_get_option( 'x_integrity_shop_title' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo x_get_option( 'x_integrity_shop_subtitle' ); ?></span></p>
      </header>
    
    <?php elseif ( x_is_buddypress() ) : ?>
      <?php if ( x_buddypress_is_component_with_landmark_header() ) : ?>
    
        <header class="x-header-landmark x-container-fluid max width">
          <h1 class="h-landmark"><span><?php echo x_buddypress_get_the_title(); ?></span></h1>
          <p class="p-landmark-sub"><span><?php echo x_buddypress_get_the_subtitle(); ?></span></p>
        </header>
    
      <?php endif; ?>
    <?php endif; ?>

    Thanks!

    #1418354

    TaverasJose
    Participant

    Hi again,
    Its a Post Category Landmark, not a product.
    This code you sent me does not solve the problem.

    Here is an example of it, where its currently working: (from my other site where I run X theme)
    https://www.doctablet.com/medicine/endocrinology/diabetes/

    Here is how it looks on the site I’m asking help about: (this was actually working but then it stopped)
    http://www.betinna.com/cirkelines-klubhus/

    #1418703

    Rad
    Moderator

    Hi there,

    1. It should be added in child theme’s functions.php
    2. The child theme should be active, else, it will not work ( it’s not active at this moment)
    3. You shouldn’t copy all files from X theme to child theme, I checked and your child theme is the exact copy of your parent theme. Please delete your child theme and install new one, activate it, then add the code in child theme’s functions.php

    Thanks.

    #1419284

    TaverasJose
    Participant

    Great.
    That worked.
    Thank you.