Skip to content

html variation

Hi,

I'm trying to edit the html variation file to justify(text-align: justify) articles posted on wordpress. Since the posted article doesn't have p attribute, the block option isn't working.

I add the following to the script and it seems to work with paragraphs with no links in, but if a paragraph has a link (<a href.......), the anchor text is displayed on a new line because "<p style="text-align: justify;">" is added before the anchor text.

[Paragraph-2]
max length=0
justify=<p style="text-align: justify;">[...]</p>

The output looks like this:
<p style="text-align: justify;">text  text text text text text  text text text text </p><a href="http://www.site.com/"><p style="text-align: justify;">ANCHOR TEXT</p></a> <p style="text-align: justify;">text2 text2 text2 text2</p><a href="http://site.com"></p>ANCHOR TEXT2</p></a> text text text text text  text text text text.

The Correct output should be:
<p style="text-align: justify;">text  text text text text text  text text text text <a href="http://www.site.com/">ANCHOR TEXT</a>text2 text2 text2 text2 <a href="http://site.com">ANCHOR TEXT2</a> text text text text text  text text text text.</p>


Any idea how to fix this?

Comments

  • SvenSven www.GSA-Online.de
    Glad someone using this powerful module for his customizations ;) I will have a look now and see if it's a bug or needs some work on it.
  • Great :), let me know what you find. customization is what makes SER awesomeeeeee.
  • SvenSven www.GSA-Online.de
    why don't you insert the <p> tags yourself anyway?
  • SvenSven www.GSA-Online.de
    next version will auto insert <p> tags if you make use of paragraph modififactions.
  • Thanks Sven. For now I'm adding the <p> tags manually, but i had some running projects and wanted to add it automatically.
  • SvenSven www.GSA-Online.de
    well with new version you don't have to anymore.
  • I've just updated to the last version, but there still might be a bug. I'm going to send you a private message with the site example.
Sign In or Register to comment.