WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Need Advice about hiding text on a One-Page Website

[Resolved] Need Advice about hiding text on a One-Page Website

  • 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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Andrew Nevins

    @anevins

    Forum moderator

    What did the people who sold you the theme say?

    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?

    Moderator Andrew Nevins

    @anevins

    Forum moderator

    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.

    OK, will wait his answer. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Need Advice about hiding text on a One-Page Website’ is closed to new replies.
Skip to toolbar