• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Add Widget After Any Number of Paragraphs In Genesis

This code enables you to add a custom widget area after any number of paragraphs on single posts and pages.

You can use any conditional tags you like to target or exclude specific posts, pages, taxonomies and custom posts types etc.

In this example, the widget displays after 2 paragraphs.

#Code Installation

There’s only 1 step.

Copy & paste the PHP code from the download folder to the end of your child themes functions file and add any content you like to your new widget area.

Register or login to access the download folder :

Register for full access

The Content

Reader Interactions

Comments

  1. Marcelo Campiglia says

    October 31, 2020 at 3:49 pm

    Hello,

    Great post, very useful!

    Is it possible to insert the same widget area every an x amount of paragraphs? For example I would want to insert a widget area every 5 paragraphs, so after paragraph 5, 10, 15, etc.

    Thanks,

    Marcelo πŸ™‚

    Log in to Reply
    • Brad Dalton says

      November 1, 2020 at 1:16 am

      Yes it is however you would need to modify the code which would take some work. You can order custom code https://wpsites.net/terms-of-service/#additional-tutorial-requests

      Log in to Reply
      • Marcelo Campiglia says

        November 1, 2020 at 4:26 pm

        OK, Thank you,

        Marcelo πŸ™‚

        Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems