Jump to content

Wrapping a sentence with <p></p> tags


robcrozier

Recommended Posts

Hi Guys, i'm using Joomla for a current project and theres one certain sentence that does Joomla has not wrapped with sufficient tags in order to let me style it in the CSS.  I'm therefore trying to discover how i might go about finding this sentence using PHP (i know what the full sentence is) and then wrap <p></p> tags around it.  I can then also include a class in the tags and thus use CSS to style the sentence.

 

Any help would be great, cheers!

Link to comment
Share on other sites

Thanks for that MasterACE14, however, will that code actually find the relevant text in the document, without the text referencing it (e.g. like a function or something)?  It's Joomla thats actually generating the code from the database on the fly you see.  So i cant actually link that sentence to the php code that you have just supplied.  Or can i?  Any further assistance would be appreciated.  Cheers.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.