Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1419533

    Jeffrey S
    Participant

    Hi X,

    Ive got a question about adding custom information on the right sidebar on my Essential Grid page.
    I will send my information in the next message because I want it to be private.

    Kind regards,

    #1419546

    Jeffrey S
    Participant
    This reply has been marked as private.
    #1419871

    Rue Nel
    Moderator

    Hello There,

    Thank you for the very detailed information. Using a widget in each of the portfolio item would mean the same contents. I think you will be needing a custom code that will make sure that the items will be unique for each of the portfolio item. To help you get started, because what you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Once you have your child theme active and ready, please follow the following steps below:
    1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
    2] Insert the following code into that new file

    <?php
    
    // =============================================================================
    // VIEWS/RENEW/CONTENT-PORTFOLIO.PHP
    // -----------------------------------------------------------------------------
    // Portfolio post output for Renew.
    // =============================================================================
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    
      <?php if ( ! x_is_portfolio_item() ) : ?>
    
        <div class="entry-featured">
          <?php x_portfolio_item_featured_content(); ?>
          <div class="entry-cover">
            <div class="entry-cover-content">
              <span><?php echo get_post_meta( get_the_ID(), '_x_portfolio_media', true ); ?></span>
              <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>
              <span><?php echo get_the_date( 'm.d.y' ); ?></span>
            </div>
          </div>
        </div>
    
      <?php endif; ?>
    
      <div class="entry-wrap cf">
    
        <?php if ( is_singular() ) : ?>
    
          <div class="entry-info">
            <div class="entry-featured">
              <?php x_featured_portfolio( 'cropped' ); ?>
            </div>
            <header class="entry-header">
              <h1 class="entry-title entry-title-portfolio"><?php the_title(); ?></h1>
              <?php x_renew_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(); ?>
    
            <p>Please insert your custom content here</p>
    
          </div>
    
        <?php endif; ?>
    
      </div>
    </article>

    3] Save the file named as content-portfolio.php
    4] Upload this file to your server in the child theme’s folder
    wp-content/themes/x-child/framework/views/renew/

    As this is all custom development, regretfully we won’t be able to assist further. Custom development is outside the scope of our support. We’re happy to provide advice and get you started in the right direction, but you would still be responsible for the implementation.

    Thank you for your understanding.

    #1420570

    Jeffrey S
    Participant

    Hi X

    Thank you for your clear explemantion! I understand further custom development is outside the the scope of your support.
    Atleast now i know how to get started.

    Enjoy your sunday!

    Kind regards,
    Jeffrey

    #1420675

    Thai
    Moderator

    If you need anything else please let us know.