The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Help displaying text on multiple pages

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #177567

    I’ve started using JQuery mobile on my sites and want to see if there is a better way to go about it. Currently, I am pulling my text from a PHP file to display on the desktop site and the mobile site so when clients have edits I don’t have to edit the full site and mobile site separately. I don’t know much about PHP, other than includes really, so I was wondering if there was a better way I could do this that would also enable me to shorten the characters shown on the mobile version and add a “read more” or “expand all” option there.


    You can actually do this with a mix of CSS and jQuery.

    On mobile, just set the height of the parent element to what you need and use overflow: hidden along with text-overflow: ellipsis.

    Use a click event to add a class to overwrite that stuff. Make it fancy with CSS animation on the height or something like that.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.