Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ofi

    (@ofi)

    Eric Amundson

    (@sewmyheadon)

    Hi Ofi,

    Your markup is improperly nested, looks like. Your paragraph (p) tags are inside of your link tags (a).

    This should be something that you can fix by logging into your WP admin and then going to Manage and select the Post or Page that’s causing these errors.

    Then I’d use the Code view to find the bad markup and fix it. Sometimes WP can add tags depending on the spacing in the text editor window. If in doubt, markup correctly with xhtml and eliminate unneccesary vertical space.

    You have code like this:

    <h4 class='fim-title' style='margin-left:126px'>
    <a href='https://www.koddinn.com/myndir/album/vestmannaeyjar/'> &nbsp;<p>Vestmannaeyjar</p>
    </a>
    </h4>

    Here, you have paragraph tags on the inside of the link when they should be on the outside. The other’s are all duplicates of this error.

    Thread Starter ofi

    (@ofi)

    Hi sewmyheadon
    Thx for reply, i have fgallery plugin, this comes when i add in new gallery, but i cant find where to edit it, not post or page.

    sorry my english

    Eric Amundson

    (@sewmyheadon)

    Hi Ofi,

    No problem. I’m not familiar with fgallery so I don’t know how it may be changing your page template.

    I’ve looked again at your site and it definitely looks like the markup that is causing the errors is probably generated by your gallery plugin.

    I notice in Firefox, it even breaks the content area so it’s not showing the correct white background and your sidebar is shoved to the bottom of the page. Fixing these paragraph issues should straighten it out, though.

    You’ll probably want to check with the gallery’s website and developer to see if you can figure out where you can change this markup. As I mentioned in my email, I’d be happy to take a look at the gallery files for you if you’d like.

    If you check with the plugin site/developer and don’t get any help, feel free to contact me and I’d be happy to take a quick look at the files for you.

    I was looking for the answer to this question, and eventually found it in this thread.

    You need to change a line of code at the very bottom of the fim_functions.php file of fgallery.

    Code as it is:

    function escape($string){
    	return apply_filters('comment_text', $string);
    }

    change the second line so that it now reads:

    function escape($string){
    	return clean_pre($string);
    }

    You do have to manually clean up the [p] tags that were already inserted, by going into database, or by editing the albums (name, description) and indivdiual photos (title description).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘p is not allowed here’ is closed to new replies.