Jump to content


Photo
- - - - -
Resolved

Text Formatting in Boxes

boxes

  • Please log in to reply
7 replies to this topic

#1 claudeman1

claudeman1

    Newbie

  • Members
  • 8 posts

Posted 30 September 2012 - 08:45 PM

Is there any simple way to stop Pagelines from treating linebreaks, unordered lists and other formatting differently when these appear within boxes?

For example, here's a page:

Please Login or Register to see this Hidden Content




And here's the same exact content inside of a box (in the left box):

Please Login or Register to see this Hidden Content




thanks

#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 30 September 2012 - 11:54 PM

If you use Firebug (

Please Login or Register to see this Hidden Content

) you can use it to style the elements you wish inside boxes, including text formatting.

#3 claudeman1

claudeman1

    Newbie

  • Members
  • 8 posts

Posted 01 October 2012 - 01:34 AM

Thanks. Do you know where I'd find the default styling for boxes?

#4 batman

batman

    Bat Learning

  • Members

  • 1772 posts
  • LocationBuenos Aires, Argentina
  • Framework Version:DMS
  • Country: Country Flag

Posted 01 October 2012 - 02:22 AM

Hi claudeman1
It is advisable to learn how to do this on your own too.

Check out

Please Login or Register to see this Hidden Content



Please see the video
;)

#5 claudeman1

claudeman1

    Newbie

  • Members
  • 8 posts

Posted 01 October 2012 - 02:38 AM

Thanks. I know how to use CSS. I'm wondering why the boxes treat content differently by default; or more precisely, where (if someone happens to know offhand) the default styling for boxes is located so that I might remove it.

Blank lines, for example, which pages and posts render as paragraph tags are ignored by boxes.

#6 Evan Mattson

Evan Mattson

    Super Member

  • Members

  • 196 posts
  • LocationAnn Arbor, MI
  • Framework Version:latest stable & beta releases
  • Country: Country Flag

Posted 01 October 2012 - 03:47 AM

Hey Claudeman,

The reason boxes don't output content the same way that wordpress posts/pages do is that the output is not run through the wordpress content filters like auto paragraphs and wp_texturize, etc. The content is taken as is and shortcodes are processed, that's it. So treat them as strict html.

You may consider using a plugin like "

Please Login or Register to see this Hidden Content

" for adding simple stuff like line breaks using shortcodes that won't be stripped out by switching between the html & visual editors.

Hope that helps!
  • claudeman1 likes this

#7 claudeman1

claudeman1

    Newbie

  • Members
  • 8 posts

Posted 01 October 2012 - 04:36 AM

Thanks, Evan!

#8 Danny

Danny

    Is Awesome!

  • Moderators
  • 13213 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 01 October 2012 - 07:40 AM

The topic was marked as resolved.





Also tagged with one or more of these keywords: Resolved, boxes