Community Forums › Forums › Archived Forums › Design Tips and Tricks › Php help in Magazine pro
Tagged: archive, magazine, primary sidebar
- This topic has 12 replies, 3 voices, and was last updated 10 years, 7 months ago by
Annaedv.
-
AuthorPosts
-
May 28, 2015 at 5:08 am #153940
Annaedv
ParticipantHello
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' );
<div class=”site-container”>
<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?
/AnnaMay 28, 2015 at 6:25 am #153946Brad Dalton
ParticipantMay 28, 2015 at 8:15 am #153963Annaedv
ParticipantHello now your talking to a nob.
I dont now what you want me to do...<script src="https://gist.github.com/anonymous/ae77bf2ce2929eeae11e.js"></script>
May 28, 2015 at 8:24 am #153965Brad Dalton
ParticipantYou 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.
More http://briangardner.com/code/layouts/
May 28, 2015 at 8:27 am #153966Annaedv
ParticipantMaybe now:
<script src="https://gist.github.com/Annaedv/c02a51c03a988b7dfa1f.js"></script>or
May 28, 2015 at 8:27 am #153967Annaedv
ParticipantLike this?
/AnnaMay 28, 2015 at 8:38 am #153970Brad Dalton
ParticipantWhere did you get the code? Please link to the source of the code or the plugin docs. Which plugin are you referring to.
May 28, 2015 at 1:31 pm #154008DTHkelly
MemberLooks like: https://wordpress.org/plugins/event-organiser/
May 29, 2015 at 12:10 am #154055Annaedv
ParticipantHello - 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.
http://www.handelsplatsnorsjo.se/evenemang/
AnnaMay 29, 2015 at 12:36 am #154056Brad Dalton
ParticipantMay 29, 2015 at 12:55 am #154057Annaedv
ParticipantHello
But if I deleat that (in line 133) it disappear. I want to move it up to where it belongs!
AnnaMay 29, 2015 at 6:07 am #154082DTHkelly
MemberI had a similar problem with Magazine Pro and Event Maker. Here's the solution for Event Maker:
https://wordpress.org/support/topic/replace-em-wrapper-for-genesis-childthemesJune 4, 2015 at 7:52 am #154849Annaedv
ParticipantHello.
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?Anna
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.