• Resolved doob8

    (@doob8)


    Hi there,

    many thank for developing this really neat plugin.

    If i understood the docs right it is only possible to decide between a block- or inline-wrapper element around the inserted page or part of the page. E.g. when I insert a title, it has the consequence that it insert a span or a h1-headline element around the title-content. Or a div or span for the content. Supplemented with some additional class-attributes.

    I personally prefer to insert the page/title/whatever content exactly as saved in the source page – without any wrapper element around at all.

    In my humble opinion, I would get rid of the options page completely and would like to control the inserted block only with shortcode attributes, e.g.
    wrap="h1" or wrap="div" or wrap="" (as default)

    Same procedure with the included page. There could be attributes für id, slug and page. Page could search 1. for an matching ID, 2. for a matching page title, 3. for a matching slug. First match wins.

    Both changes would make the plugin much more flexible per single usage.

    I would be glad to find such improvements in an upcoming version of Insert Pages.

    Cheers.

    P.S.: I also use the plugin WP Editor by Benjamin Rojas. The toolbar-button of Insert Pages seems to have some conficts. In visual mode it inserts nothing and in text mode there is no button at all.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Paul Ryan

    (@figureone)

    You can modify the wrapper markup by hooking into the insert_pages_wrap_content filter. See examples in the changelog for version 2.9.1:
    https://www.ads-software.com/plugins/insert-pages/changelog/
    Let me know if that works for you; if not I can look into adding another shortcode parameter.

    Regarding WP Editor, in text mode it seems to conflict with the Quicktags API; I’d check with the developer to see if he can make WP Editor work with other plugins that use the Quicktags API.
    https://codex.www.ads-software.com/Quicktags_API
    In visual mode I can’t find any conflicts with Insert Pages. Are you using some custom configuration for WP Editor that might cause the issue?

    Thread Starter doob8

    (@doob8)

    Many thanks, Paul, the filter hook does the trick. Great.

    WP Editor runs with default settings. I installed it from official WP plugins directory with no changes after installing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Use Insert Pages with no wrapper element at all’ is closed to new replies.