Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1070711
    markw1
    Participant

    Hi there,

    I have created a portfolio of “Projects” on a new site.
    And I have updated the display for the Ethos Entry to display some new custom fields.
    This is working well and I now have great list of projects at the top of the site.

    However I would like to add a STATIC extra entry to the Entry Covers displayed at the top of the site.
    -> This will be an image and a link to the Register page, with some marketing message.

    How can I do this.

    I will link site below in private.

    #1070712
    markw1
    Participant
    This reply has been marked as private.
    #1070974
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    Thank you for your understanding.

    #1071266
    markw1
    Participant

    Hi Rue,

    I have updated the Cover Entry on Ethos, to bring back some custom fields. (see code below)
    And the Cover Entry brings back the Porfolio items fine, BUT I would like to add an item to this list.
    Which is a link to the Register Page on the website. ( I have attached screenshot)

    CODE

    //MJW - update to the portfolio pages
    if ( ! function_exists( 'x_ethos_entry_cover' ) ) :
      function x_ethos_entry_cover( $location ) {
    
        if ( $location == 'main-content' ) { ?>
    
          <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
            <a>" style="<?php echo x_ethos_entry_cover_background_image_style(); ?>">
              <h2 class="h-entry-cover"><span><?php x_the_alternate_title(); ?></span></h2>
                <div class="entry-cover-overlay">
                	<ul>
                		<li><strong>When </strong><?php  x_custom_field("When"); ?></li>
                		<li><strong>Where </strong><?php  x_custom_field("Where"); ?></li>
                		<li><strong>Who </strong><?php  x_custom_field("Who"); ?></li>
                	</ul>
                </div>
            </a>
          </article>
    
        <?php } elseif ( $location == 'post-carousel' ) { ?>
    
          <?php GLOBAL $post_carousel_entry_id; ?>
    
          <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
            <a>" style="<?php echo x_ethos_entry_cover_background_image_style(); ?>">
              <h2 class="h-entry-cover"><span><?php ( $post_carousel_entry_id == get_the_ID() ) ? the_title() : x_the_alternate_title(); ?></span></h2>
              <div class="x-post-carousel-meta">
                <span class="entry-cover-author"><?php x_custom_field("When"); ?></span>
                <span class="entry-cover-categories"><?php x_custom_field("Where"); ?></span>
                <span class="entry-cover-date"><?php x_custom_field("Who"); ?></span>
              </div>
            </a>
          </article>
    
        <?php }
    
      }
    endif;
    //MJW - x_custom_field
    if ( ! function_exists( 'x_custom_field' ) ) :
      function x_custom_field($key) {
        $value = get_post_meta( get_the_ID(), $key, true );
        echo $value;
      }
    endif;
    #1071353
    Paul R
    Moderator

    Hi,

    Regretfully, this particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.

    Thank you for your understanding.

    #1072043
    markw1
    Participant

    hmmmm

    #1072333
    Prasant Rai
    Moderator

    Thanks for understanding. Feel free to ask us again. Have a great day! 🙂

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