Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1394742

    Hi everyone,

    I’m using the Team Member content element, and the title and description are below the image.
    I’d like to make the title and description appear above the image, instead of below it.
    It’s on the Team page.

    Any ideas?

    Thanks!

    Chris

    #1394862

    Hey Chris,

    Thank you for the inquiry.

    You can add this code in the functions.php file to move the title and excerpt above the team member image.

    //--------------------------------------------------------------
    // Adjust Team Member element
    //--------------------------------------------------------------
    add_action('wp_footer', 'ava_custom_script');
    function ava_custom_script(){
    ?>
    <script type="text/javascript">
    (function($) {
    	$(document).ready(function() {
            $(".avia-team-member").each(function() {
                var image = $(this).find(".team-img-container");
                var title = $(this).find(".team-member-job-title "); 
                image.detach().appendTo(title);
            });       
    	});
    })(jQuery);
    </script>
    <?php
    }
    

    Best regards,
    Ismael

    #1394927

    That worked perfectly! Thank you Ismael!
    You can close this thread.

    #1394979

    Hi Chris,

    I’m glad that Ismael could help you :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Team Member title and description above the image’ is closed to new replies.