Tagged: x
-
AuthorPosts
-
June 23, 2016 at 5:39 am #1056088
zedcomParticipantHello !
I am doing a website for an association. There is a blog part where you can see past and next events.
I added a custom field ‘date’ where you can enter the date of these events.
Now I would like to change the hover of the images on the post thumbnail with my custom field to show the date of these events.
(and I would lie to change it on the post page + on the home page)I give you print-screens to illustrate the situation in attached files…
Can you help me with this issue please ?
Thank you
Zedcom
June 23, 2016 at 5:43 am #1056091
zedcomParticipanthere are two other print-screens and the address of the website is http://www.zedcom.ch/uvwuvw/
June 23, 2016 at 8:33 am #1056300
Paul RModeratorHi,
Thanks for writing in! 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.
June 27, 2016 at 9:22 am #1061579
zedcomParticipantOk,
I understand, I will do the research.June 27, 2016 at 9:34 am #1061601
ThaiModeratorIf you need anything else please let us know.
June 28, 2016 at 8:44 am #1063193
zedcomParticipantHello,
I installed ACF plugin. Now I have a personal field named ‘date’. and I have this php element : <?php the_field(‘date’);?>
I want only to display it in the posts, above the title of each post (easier…)
Can you please tell me in witch php file of the child theme do I have to insert the code to display it.
Thank U for your answer !
June 28, 2016 at 8:58 am #1063216
Paul RModeratorHi,
You may copy this file wp-content/themes/x/framework/views/integrity/_content-post-header.php to wp-content/themes/x-child/framework/views/integrity/
Then add your code into it.
eg.
<?php // ============================================================================= // VIEWS/INTEGRITY/_CONTENT-POST-HEADER.PHP // ----------------------------------------------------------------------------- // Standard <header> output for various posts. // ============================================================================= ?> <header class="entry-header"> <?php if ( is_single() ) : ?> <?php the_field('date');?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php else : ?> <h2 class="entry-title"> <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> <?php endif; ?> <?php x_integrity_entry_meta(); ?> </header>Hope that helps
June 28, 2016 at 9:50 am #1063312
zedcomParticipantThanks ! Works perfectly !!
June 28, 2016 at 10:01 am #1063335
JoaoModeratorGreat to hear it.
Let us know if we can do anything else to help
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1056088 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
