Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1291113
    dmog74
    Participant

    Hi there,

    I’ve used this code in Child Theme content-portfolio.php I found in the forum to include titles on my Icon Stack portfolio items:

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

    And it has worked great. My only problem is that the styling on the porfolio posts is not good. The letters are huge. I would like the text styling to match the FEATURED POSTS styling in the right hand column.

    Can you tell me how to do this please?

    Thank you!
    Dylan

    #1291114
    dmog74
    Participant
    This reply has been marked as private.
    #1291140
    Christopher
    Moderator

    Hi there,

    Please check provided credentials, they didn’t work.

    Thanks.

    #1291147
    dmog74
    Participant
    This reply has been marked as private.
    #1291241
    Paul R
    Moderator

    Hi Dylan,

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

    
    .single-x-portfolio .entry-title {
        font-size:25px;
    }
    

    You may change 25px to adjust.

    Hope that helps.

    #1291259
    dmog74
    Participant

    Hey Paul – thanks for that. I’ve added the CSS to the customiser and changed it to various font sizes, but the text size is not changing. It still remains the same large size it was. Any ideas? Thank you!!!

    #1291267
    dmog74
    Participant

    Ah – sorry Paul. I see what happened. The CSS you gave me changed the size of the title font on the indivdual portfolio post pages. What I need to do is change the title font on the portfolio thumbnail item on the list page… see attached image of the items I mean… The fonts are WAY too big and screwing up the layout. Thank you!

    #1291270
    dmog74
    Participant

    Attachment here:

    #1291344
    Lely
    Moderator

    Hello There,

    The site is password protected. See attached screenshot. Although, you might try the following CSS:

    h2.entry-title.entry-title-portfolio {
        font-size: 20px;
    }

    If that doesn’t do the trick, please share the password for the page so we can check further.

    #1291525
    dmog74
    Participant

    That did the trick, thanks! My only issue now is that there is no padding between the top of text area and the portfolio image (see attached image). How can I increase that space between the two so the the title text sits nicely in its row, centered top and bottom in the white space? Thanks so much!!

    #1291621
    dmog74
    Participant
    This reply has been marked as private.
    #1291817
    Jade
    Moderator

    HI there,

    Please update the code to:

    h2.entry-title.entry-title-portfolio {
        font-size: 20px;
        padding: 20px;
    }

    Hope this helps.

    #1291977
    dmog74
    Participant

    Amazing. Thank you so much!

    #1292274
    Prasant Rai
    Moderator

    You are most welcome. 🙂

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