Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your report and the link to the sample page.

    I have not seen the addition of < p > tags in the style template; there’s no code in the plugin that does this.

    Are you using the default style template?

    You can go to the Settings/Media Library Assistant MLA Gallery tab and inspect the style template(s) there. The default style template, for example, ends with

    </style>
    <!-- see mla_gallery_shortcode() in media-library-assistant/includes/class-mla-shortcodes.php -->

    As you can see, there’s no < p > tag in there. If your default template looks different, let me know. If there’s another template in use, look at the source for additional tags.

    Have a look at your template(s) and let me know what you find. Thanks for your help with this.

    Thread Starter jeynon

    (@jeynon)

    So if I got into mla-option-templates.tpl I see the following lines

    <!– see mla_gallery_shortcode() in media-library-assistant/includes/class-mla-shortcodes.php –>

    <!– template=”default-open-markup” –>

    It seems my page is putting <p> tags around the first set of comments but not the second. If I remove the first set of comments I no longer see what I see below. I will simply remove the line. Yes, I am using the default style. I wonder if it has to do with interaction with some other plugin. I have used your plugin on many other sites and not seen this problem.

    <p><!– see mla_gallery_shortcode() in media-library-assistant/includes/class-mla-shortcodes.php –></p>

    Plugin Author David Lingren

    (@dglingren)

    Well, that’s fascinating. I can’t account for it, but I am happy you found the “back door” to update the default template. Don’t forget, your modifications will be lost each time you update the plugin. You might want to create a custom style template (you can make it your new default if you want) to simplify future maintenance.

    You could try an experiment to explore your “some other plugin” suspicion. The WordPress [gallery] shortcode has almost the same inline styles, ending with:

    </style>
    <!-- see gallery_shortcode() in wp-includes/media.php -->

    Try adding a [gallery] to a page or post and see if the same < p > insertion happens with it.

    I’m going to mark this issue resolved, but feel free to update it with any other problems or further questions you might have.

    Thanks for the update, for your detective work and for your interest in the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Seeing P tags around the comments in the shortcode generator’ is closed to new replies.