Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1056088
    zedcom
    Participant

    Hello !

    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

    #1056091
    zedcom
    Participant

    here are two other print-screens and the address of the website is http://www.zedcom.ch/uvwuvw/

    #1056300
    Paul R
    Moderator

    Hi,

    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.

    #1061579
    zedcom
    Participant

    Ok,
    I understand, I will do the research.

    #1061601
    Thai
    Moderator

    If you need anything else please let us know.

    #1063193
    zedcom
    Participant

    Hello,

    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 !

    #1063216
    Paul R
    Moderator

    Hi,

    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

    #1063312
    zedcom
    Participant

    Thanks ! Works perfectly !!

    #1063335
    Joao
    Moderator

    Great to hear it.

    Let us know if we can do anything else to help

    Joao

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