- This topic has 12 replies, 3 voices, and was last updated 7 years, 2 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I´m using Magazine pro and want to use Event Organiser as a plugin. Then I want the archive of events to show up as a list with the "Content / Primary Sidebar" as layout.
But the archive shows them in full width.
I think I´m going to change this in archive-event.php but what do i write instead of this?:
<!-- This template is following Magazine-pro—>
//* Force full width content layout
add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );
<main class="site-container” itemprop="text">
the original looks like this:
<!-- This template follows the TwentyTwelve theme-->
<div id="primary" class="site-content">
<div id="content" role="main">
And if I use this the primary sidebar appears under the full with content.
Tips and tricks?
Hello now your talking to a nob.
I dont now what you want me to do...
You can change the layout using the Layout settings on any Edit page or Post screen.
No need for the above code but if you want, you can use this line only.
add_filter( ‘genesis_site_layout’, ‘__genesis_return_content_sidebar’ );
Add after the opening PHP tag in your template.
Where did you get the code? Please link to the source of the code or the plugin docs. Which plugin are you referring to.
Hello - Yes, It is Event Organiser (as I wrote in my first post).
I added that filter you suggest but still the primary sidebar appears in the footer. And I want it in the sidebar.
But if I deleat that (in line 133) it disappear. I want to move it up to where it belongs!
I had a similar problem with Magazine Pro and Event Maker. Here's the solution for Event Maker:
I´m still struggeling with this.
The plugin want me to add an "archive-event.php" in my map of the theme.
I think I should move <?php get_sidebar(); ?> to another place but where?
© 2022 WPEngine, Inc.