Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #381908
    michaelxxx
    Participant

    Hi,

    how can I replace the word “IMAGE” at the Renew Overlay to something own like “SEE ALL OUR IMAGES”?

    And the date format at the overlay is right now: 09.06.15
    How can I change this to 09.06.2015?

    #381931
    Zeshan
    Member

    Hi there,

    Thanks for writing in!

    Would you mind pointing us to the overlay where you want to replace the IMAGE with your custom text?

    As for the data format, you can change it under Settings > General > Date Format in your WordPress dashboard.

    Thanks!

    #382145
    michaelxxx
    Participant

    Hi,

    #1
    The mouseover effect on the placeholder image shows me 3 different things:
    – the media type (image, gallery, video)
    – the index title
    – the date

    For media type I have choosen image and it shows the word “IAMGE” on the placeholder overlay.
    And I just want to replace the word “IMAGE” to something own like “SEE ALL OUR IMAGES”?

    #2
    In my “Settings > General > Date Format” I have the right format: 08/09/2015
    But this format is not shown at the overlay. There it is 09.06.15

    #382185
    Thai
    Moderator

    Hi There,

    Because this requires a template change, I’d advise that you setup 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.
    Then navigate to your child theme’s /framework/views/renew directory create a file named content-portfolio.php and paste the code below:

    <?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 "SEE ALL OUR ".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(); ?>
          </div>
    
        <?php endif; ?>
    
      </div>
    </article>

    Hope it helps.

    #382200
    michaelxxx
    Participant

    yes, that works perfect!
    Thnak you very much for your great support

    #382268
    Jade
    Moderator

    You’re most welcome.

    #721585
    michaelxxx
    Participant

    Hi,

    everything has worked well. But I think since the last updates the content-portfolio.php in my x-child theme has no more effect on my homepage.

    This is the code I have there:

    
    <?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 "ENTER GALLERY" ?></span>
              <h2 class="entry-title entry-title-portfolio">
                <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Nude Gallery from: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_title(); ?> (<?php x_the_alternate_title(); ?>)</a>
              </h2>
              <img src="../wp-content/images/camera.png"><br>
              <span><font size="1">online since: <?php echo get_the_date( 'd.m.Y' ); ?></font></span><br><br>
              <span><img src="../../wp-content/flags/<?php x_the_alternate_title(); ?>.gif"></span>
            </div>
          </div>
        </div>
    
      <?php endif; ?>
    
      <div class="entry-wrap cf">
    
        <?php if ( is_singular() ) : ?>
          <div class="entry-info">
    
            <header><center>
              <a href="../../photographer-tag/<?php echo x_the_alternate_title(); ?>/"><img class="alignright" src="http://localhost/wp-content/flags/<?php echo x_the_alternate_title(); ?>.gif" alt="Photographer from: <?php echo x_the_alternate_title(); ?>" border="0"></img></a>
    
              <h1 class="entry-title entry-title-portfolio"><?php the_title(); ?> <font color="grey" size="6"><i>(<?php x_the_alternate_title(); ?>)</i></font></h1>
    
              <?php $project_link  = get_post_meta( get_the_ID(), '_x_portfolio_project_link', true );
      	  if ( $project_link ) :
              ?>
    
              <a href="http://<?php echo $project_link; ?>" target="_blank"><?php echo $project_link; ?></a><br>
              <?php
              endif;
              ?>
    
    <?php x_renew_entry_meta(); ?>
              <font color="#723f72">gallery online since: <?php the_date( 'd.m.Y' ); ?></font><br>
    
            <br>
            </center>
            </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 endif; ?>
    
        </div>
    </article>
    

    But this code has no effect. There is only the “+” as a hover effect on the image.
    How can this be?

    I work on localhost, so I can´t show you a live site.

    #721622
    michaelxxx
    Participant

    solved. i changed the template layout.

    #721728
    Rue Nel
    Moderator

    Hey There,

    We are glad you’ve figured out a way to resolve your issue.
    Thanks for letting us know!

    Happy Holidays.

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