-
AuthorPosts
-
September 8, 2015 at 5:51 am #381908
michaelxxxParticipantHi,
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?September 8, 2015 at 6:12 am #381931
ZeshanMemberHi 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!
September 8, 2015 at 9:48 am #382145
michaelxxxParticipantHi,
#1
The mouseover effect on the placeholder image shows me 3 different things:
– the media type (image, gallery, video)
– the index title
– the dateFor 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.15September 8, 2015 at 10:30 am #382185
ThaiModeratorHi 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.
September 8, 2015 at 10:50 am #382200
michaelxxxParticipantyes, that works perfect!
Thnak you very much for your great supportSeptember 8, 2015 at 11:53 am #382268
JadeModeratorYou’re most welcome.
December 26, 2015 at 3:27 pm #721585
michaelxxxParticipantHi,
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.
December 26, 2015 at 4:29 pm #721622
michaelxxxParticipantsolved. i changed the template layout.
December 26, 2015 at 7:02 pm #721728
Rue NelModeratorHey There,
We are glad you’ve figured out a way to resolve your issue.
Thanks for letting us know!Happy Holidays.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-381908 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
