• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Php help in Magazine pro

Welcome!

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.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Php help in Magazine pro

This topic is: not resolved

Tagged: archive, magazine, primary sidebar

  • This topic has 12 replies, 3 voices, and was last updated 7 years, 8 months ago by Annaedv.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • May 28, 2015 at 5:08 am #153940
    Annaedv
    Participant

    Hello
    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?
    /Anna

    May 28, 2015 at 6:25 am #153946
    Brad Dalton
    Participant

    Please embed PHP code using a Github Gist. Thanks.


    Get Help – Book Consultation.

    May 28, 2015 at 8:15 am #153963
    Annaedv
    Participant

    Hello 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 #153965
    Brad Dalton
    Participant

    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.

    More http://briangardner.com/code/layouts/


    Get Help – Book Consultation.

    May 28, 2015 at 8:27 am #153966
    Annaedv
    Participant

    Maybe now:
    <script src="https://gist.github.com/Annaedv/c02a51c03a988b7dfa1f.js"></script>

    or

    May 28, 2015 at 8:27 am #153967
    Annaedv
    Participant

    Like this?
    /Anna

    May 28, 2015 at 8:38 am #153970
    Brad Dalton
    Participant

    Where did you get the code? Please link to the source of the code or the plugin docs. Which plugin are you referring to.


    Get Help – Book Consultation.

    May 28, 2015 at 1:31 pm #154008
    DTHkelly
    Member

    Looks like: https://wordpress.org/plugins/event-organiser/

    May 29, 2015 at 12:10 am #154055
    Annaedv
    Participant

    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.
    http://www.handelsplatsnorsjo.se/evenemang/
    Anna

    May 29, 2015 at 12:36 am #154056
    Brad Dalton
    Participant

    Yes because you have included

    <?php get_sidebar(); ?>

    Get Help – Book Consultation.

    May 29, 2015 at 12:55 am #154057
    Annaedv
    Participant

    Hello
    But if I deleat that (in line 133) it disappear. I want to move it up to where it belongs!
    Anna

    May 29, 2015 at 6:07 am #154082
    DTHkelly
    Member

    I 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-childthemes

    June 4, 2015 at 7:52 am #154849
    Annaedv
    Participant

    Hello.
    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

  • Author
    Posts
Viewing 13 posts - 1 through 13 (of 13 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble