Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #64509

    Sohrab G
    Participant

    Hi,

    I am trying to remove the main Portfolio page title that shows at the top of the page.

    I cant seem to find an option to disable or remove the title even though I ticked the DISABLE option on the page option.

    I have tried removing the H1 from the portfolio layout template but it is still there.

    content-portfolio.php =>
    <h1 class=”entry-title entry-title-portfolio”><?php the_title(); ?></h1>

    I am probably editing the wrong file.

    Please let me know how to remove or disable it.

    Cheers

    S

    #64847

    Rad
    Moderator

    Hi Sohrab,

    Thank you for writing in but I’m not really sure what causing it. Would you mind providing url address and admin login in private?

    Thank you.

    #65117

    Sohrab G
    Participant
    This reply has been marked as private.
    #65390

    Christian
    Moderator

    Hey Sohrab,

    Please try replacing the content-portfolio.php with the code below

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/CONTENT-PORTFOLIO.PHP
    // -----------------------------------------------------------------------------
    // Portfolio post output for Integrity.
    // =============================================================================
    
    $archive_share = x_get_option( 'x_integrity_portfolio_archive_post_sharing_enable' );
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <div class="entry-featured">
        <?php x_portfolio_item_featured_content(); ?>
      </div>
      <div class="entry-wrap cf">
    
        <?php if ( x_is_portfolio_item() ) : ?>
    
          <div class="entry-info">
            <header class="entry-header">
              <!-- <h1 class="entry-title entry-title-portfolio"><?php the_title(); ?></h1> -->
              <?php x_integrity_entry_meta(); ?>
            </header>
            <?php x_get_view( 'global', '_content', 'the-content' ); ?>
          </div>
          <div class="entry-extra">
            <?php x_portfolio_item_tags(); ?>
            <?php x_portfolio_item_project_link(); ?>
            <?php x_portfolio_item_social(); ?>
          </div>
    
        <?php else : ?>
    
          <header class="entry-header">
            <h2 class="entry-title entry-title-portfolio">
              <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php x_the_alternate_title(); ?></a>
            </h2>
            <?php if ( $archive_share == 1 ) : ?>
              <?php x_portfolio_item_social(); ?>
            <?php endif; ?>
          </header>
    
        <?php endif; ?>
    
      </div>
      <?php x_google_authorship_meta(); ?>
    </article>

    If that doesn’t help, please give us the URL of the page your trying to remove the title.

    Thanks.

    #65500

    Sohrab G
    Participant

    Hi,

    The home page I trying to remove the title – http://williamhillthefacts.com/

    PAGE: Home

    I have tried the code you provided above but it still doesn’t work.

    By the way commenting H1 out doesn’t work with PHP. PHP still reads that.

    I removed the whole line out as you can see in the code I provided above but the page title still shows up. I am puzzled.

    Is there another file in the theme that porfolio template use?

    I have no option of setting the font size for the search form as well??

    Please let me know how I can resolve that.

    Cheers.

    S

    #65553

    Sohrab G
    Participant

    Hi,

    It is actually the page title that I want to remove and not the post title.

    Cheers

    S

    #65709

    Christian
    Moderator

    Hey Sohrab,

    Please modify _landmark-header.php located in framework\views\integrity. The code you’ll want to modify is

    <header class="x-header-landmark x-container-fluid max width">
        <h1 class="h-landmark"><span><?php echo get_theme_mod( 'x_integrity_blog_title' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php echo get_theme_mod( 'x_integrity_blog_subtitle' ); ?></span></p>
    </header>

    For the search, the code you’ll modify

    <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>

    Hope that helps. 🙂

    #182565

    pfavre
    Participant

    Hello Sohrab

    I also am looking at removing the “Portfolio” title (span) and did not get a resolution from above. I have dug a bit further and have seemed to get a solution. Support please confirm.

    Navigate to your theme, www\wordpress\wp-content\themes\x\framework\views\integrity
    Edit _landmark-header.php

    As you will see the structure is a sequence of IF statements. Search for line 120. You will notice the IF statement is x_is_portfolio

    Delete line 122
    <h1 class=”h-landmark”><span><?php the_title(); ?></span></h1>

    Hope this helps

    #182987

    Zeshan
    Member

    Hi Pfavre,

    Thank you for helping other users! 🙂

    Yes, removing this line of code should remove the portfolio page title.

    Cheers!

    #562632

    jessica
    Participant

    I’ve deleted line 122 in _landmark-header.php, but the title is still showing up on my portfolio items. See http://goodvibesbranding.com/portfolio/yogi-kids/ Please help.

    #599061

    Friech
    Moderator

    Hi There,

    You can add this under Custom > CSS in the Customizer.

    .single-x-portfolio .entry-header {
    	display: none;
    }

    Hope it helps, Cheers!