Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1220786
    DKMGAU
    Participant

    Hey guys, trying to add titles in the archive section of my portfolio and I’m not having much luck.

    I’ve tried the following code in content-portfolio.php in my child theme:

    <?php
    
    // =============================================================================
    // VIEWS/ICON/CONTENT-PORTFOLIO.PHP
    // -----------------------------------------------------------------------------
    // Portfolio post output for Icon.
    // =============================================================================
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <div class="entry-wrap">
        <div class="x-container max width">
    
          <?php if ( x_is_portfolio_item() ) : ?>
    
            <header class="entry-header">
              <h1 class="entry-title"><?php the_title(); ?></h1>
              <?php x_icon_entry_meta(); ?>
            </header>
    
          <?php endif; ?>
    
          <div class="entry-featured">
            <?php x_portfolio_item_featured_content(); ?>
            <?php if( !x_is_portfolio_item() ) : ?>
    
              <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>
            
              </header>
    
            <?php endif; ?>
    
          </div>
          
          <?php if ( is_singular() ) : ?>
    
            <?php x_get_view( 'global', '_content', 'the-content' ); ?>
            <div class="entry-extra">
              <?php x_portfolio_item_tags(); ?>
              <?php x_portfolio_item_project_link(); ?>
              <?php x_portfolio_item_social(); ?>
            </div>
    
          <?php endif; ?>
    
        </div>
      </div>
    </article>

    This works, but the titles are waaaay too big.
    I can’t work out how to reduce the size of the titles.

    The portfolio I’m working on is located at http://geekbite.com/NewSite/collection/

    #1220918
    Rupok
    Member

    Hi there,

    You did it already! Just add this under Custom > CSS in the Customizer.

    .page-template-template-layout-portfolio .entry-title-portfolio {
      font-size: 24px;
      padding: 15px 10px;
    }

    Hope this helps.

    Cheers!

    #1221616
    DKMGAU
    Participant

    Yes, Thank-you! 🙂

    #1221617
    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1220786 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>