WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Need Advice about hiding text on a One-Page Website (5 posts)

  1. stephanekapi
    Member
    Posted 10 months ago #

    Each team-member of this speech therapy website I'm working on has a different level of experience. But I want the description text of three team profiles to display at the same hight and size.

    What would be the best solution to display just 4-5 lines for each person and than have a "read more" option?

    I tried using jQuery, but it was breaking the page. I used this:

    <!DOCTYPE html>
    <html>
    <head>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
    </script>
    <script>
    $(document).ready(function(){
      $("#button").click(function(){
        $("#cache").slideToggle();
      });
    });
    </script>
    </head>
    <body>
    
    <div id="cache" style="display:none;">
    <p>Ce qui va être caché</p>
    <p>Ce qui va être caché</p>
    <p>Ce qui va être caché</p>
    </div>
    
    <a id ="button">Lien</a>
    
    </body>
    </html>

    Thanks ahead for your help!

  2. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 10 months ago #

    What did the people who sold you the theme say?

  3. stephanekapi
    Member
    Posted 10 months ago #

    Hi Andrew,
    I've been asking them a lot of questions. I always feel bad asking them, because I feel that I'm going beyond the theme. Do you think it's an acceptable question to ask the theme builder?

  4. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 10 months ago #

    If the theme's vendors also think you're going beyond the theme then they'll let you know. You may be asked to pay extra, but until then they have a responsibility to help you because you bought their product.

  5. stephanekapi
    Member
    Posted 10 months ago #

    OK, will wait his answer. Thanks!

Reply

You must log in to post.

About this Topic