Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #397227

    Good day. I created a page for my sales team and used the 1/3 layout to display 30 members, 3 for each row for a total of 10 rows. I then added the Team Member content element to all 30 of the 1/3 layout spots. The Team Member Descriptions are quite large for most of them, and when I write them in to each team member, its way too long to display on the page.

    Is there any way I can add some kind of code on the Team Member Description to have the full bio open in a modal window?

    Or could I leave the Team Member Description blank and maybe add the Code Block content element (or some other content element) and show some of the bio and then have a link to read more and have that link open a modal window?

    Thank you.

    • This topic was modified 9 years, 2 months ago by santanin.
    #397306

    Hi!

    Is there any way I can add some kind of code on the Team Member Description to have the full bio open in a modal window?

    What would trigger that? can you post a link to the page in question?

    Cheers!
    Josue

    #397421
    This reply has been marked as private.
    #397966

    Hi!

    Found a way.
    1. Add this to child theme functions.php:

    function inline_popup_enabler(){
    ?>
    <script>
    (function($){
        $(window).load(function() {
        	$('.inline_popup').magnificPopup({
        	  type:'inline',
        	  midClick: true 
        	});
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'inline_popup_enabler');

    2. Put this in each member element description:

    <a class="inline_popup" href="#content_1">Trigger</a>
    <div id="content_1" class="hidden">Some content</div>
    

    Note href and id, they should be unique for each one:

    <a class="inline_popup" href="#content_2">Trigger</a>
    <div id="content_2" class="hidden">Some content</div>
    

    And so on..

    3. Add this to Quick CSS:

    .mfp-container .hidden {
        display: block !important;
        visibility: visible;
        width: 25%;
        background: white;
        padding: 20px;
        margin: 0 auto;
    }

    Best regards,
    Josue

    #398059
    This reply has been marked as private.
    #398212

    Hi!

    Use the following CSS – put in QuickCSS or custom.css:

    
    .mfp-container .hidden {
        position: relative !important;
    }
    

    Regards,
    Günter

    #789745

    Hi there. Thanks so much for posting this. I have made use of the above suggestions with some mild difference in CSS but for some reason it is affecting my footer. Can someone tell me why the footer is now blacked out as opposed to how it normally is on the home page, for example.

    Thank you!

    #789991

    Hi,

    Please try the following in Quick CSS under Enfold->General Styling:

    
    .page-id-2114 #footer .widget h3, .page-id-2114 #footer .widget p, .page-id-2114 #footer .widget a {
      color:white !important;
    }

    Best regards,
    Rikard

    #1189540

    MIght there be an update to this mod? It is not working with WordPress 5.3.2 and Enfold 4.7.3

    #1190536

    Hi revelbranding,

    Please start a separate thread, describe your issue there and give us a link to your website.

    Best regards,
    Victoria

    #1190547

    I have figured it out. A plugin was interfering and since has been updated. I can confirm that the above code works well.

    #1190652

    Hi revelbranding,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.