- This topic has 5 replies, 3 voices, and was last updated 3 years, 7 months ago by
Tom.
-
AuthorPosts
-
February 19, 2019 at 7:57 am #814699
Victor Millan
Hello, first of all, I want to congratulate you for your work and thank you very much for your time.
Now my query. On a blogroll type homepage, I would like to add two areas of widgets in between the posts. For example, after 3 post, one widget area, and after 7, another. Is it possible to relocate some footer widget that is not used for this? Or include them in some way?
Mi site is based on Marketer theme.
Thank you
Victor
GP Premium 1.7.7February 19, 2019 at 3:05 pm #814961Tom
Lead DeveloperLead DeveloperHey Victor,
Doing something like this would be quite complex, unfortunately. It would involve re-writing the post loop in custom templates. It’s a little too involved to explain via forums.
I’m not sure what you’re adding, but have you looked into a plugin like Ad Inserter? It has this capability baked in, but it doesn’t use widget areas.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 24, 2019 at 12:12 pm #992488Jose
Tom, look forward to having this feature as well. I didn’t know it was so difficult, as we have it working in our site (using genesis framework theme).
August 24, 2019 at 2:52 pm #992547Tom
Lead DeveloperLead DeveloperHi there,
You can most likely use the same method you’re using now with Genesis with GP. Is it a plugin or a custom page template?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 24, 2019 at 3:30 pm #992570Jose
I had this in the functions.php
// BETWEEN Posts genesis_register_sidebar( array( 'id' => 'between-post-content', 'name' => __( 'Between Posts', 'mm' ), 'description' => __( 'Section Between Posts', 'mm' ), ) ); add_action( 'genesis_after_entry', 'mm_between_post_content' ); function mm_between_post_content() { global $loop_counter; $loop_counter++; if( $loop_counter == 2 ) { if ( is_active_sidebar( 'between-post-content' ) ) { echo '<div class="between-post-content widget-area"><div class="wrap">'; dynamic_sidebar( 'between-post-content' ); echo '</div></div><!-- end .top -->'; } $loop_counter = 0; } }
Not sure if this will be of help. The intention was to have an ad b/w every two posts.
August 25, 2019 at 9:04 am #993045Tom
Lead DeveloperLead DeveloperHmm, not possible at the moment, but I think we should be able to add a hook in the next version that will achieve this.
I’ll take a look 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.