[Support request] Elements as shortcode inserting between paragraphs of post

Home Forums Support [Support request] Elements as shortcode inserting between paragraphs of post

Home Forums Support Elements as shortcode inserting between paragraphs of post

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #619872
    Anil

    Hi

    I am loving Elements in GP 1.7-beta.1

    I am using elements with hooks to display ads at various locations.

    I want to insert ads in between paragraphs of posts as per my need.

    Can I use these elements as shortcodes to insert ads code in posts?

    Or suggest best way to insert ads code between paragraphs of posts.

    Regards.

    #620001
    David
    Staff
    Customer Support

    Hi there,

    glad to hear your enjoying 1.7, it really is something special and remarkably will only get better 🙂

    Elements doesn’t create shortcodes. I would assume you currently have a shortcode or a script for adding the adverts?

    To automate adding adverts you would need to use a Filter on the the_content. Here is an article on that if you’re interested in understanding how.

    https://keesiemeijer.wordpress.com/2016/09/27/add-content-between-html-paragraphs-in-wordpress-posts/

    #1094064
    Rafał

    Hi!
    Nothing more convenient in the topic?
    There’s no possibility to use Elements’ Hook as a shortcode?

    #1094237
    David
    Staff
    Customer Support

    Hi there,

    closest thing to it is in this topic:

    https://generatepress.com/forums/topic/hook/#post-1036765

    #1094806
    Rafał

    David, thanks for your answer.

    #1094865
    David
    Staff
    Customer Support

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.