• 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

Agent Press 1.0 to 1.01 Upgrade Problem

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 › Agent Press 1.0 to 1.01 Upgrade Problem

This topic is: not resolved

Tagged: agent press 1.0

  • This topic has 23 replies, 3 voices, and was last updated 13 years, 3 months ago by cdils.
Viewing 20 posts - 1 through 20 (of 24 total)
1 2 →
  • Author
    Posts
  • April 9, 2013 at 4:15 pm #34388
    futurewebboss
    Member

    Did an upgrade from Agent Press 1 to 1.01 that integrates the new slider and ended up with an alignment issue. The slider is center aligned. Can anyone help? Please? Desperate in New Mexico

    http://ginaspropertymanagement.com is the site.

    Thanks in advance,

    Dan

    April 10, 2013 at 6:31 am #34484
    Robin
    Member

    Without knowing exactly what it is that you want it to do, you can make it not be centered by adding:
    #genesis-slider {
    margin: 0;
    }

    to your style.css. Currently the margin is set to '0 auto' so that's what is making it center. Adding this code pushes it to the left of that block. Is that what you're looking for? Or?


    I do the best I can with what I’ve got. (say hey on twitter)

    April 10, 2013 at 7:48 am #34493
    futurewebboss
    Member

    Thank you robin for your reply. I added the css but no joy. Here's a screenshot of what it should look like,

    http://ginaspropertymanagement.com/wp-content/uploads/2013/04/screenshot.png

    Thanks in advance

    Dan

    April 10, 2013 at 8:02 am #34496
    Robin
    Member

    Change it to this:
    #genesis-slider {
    margin: 0 !important;
    float: right;
    }

    However, I think the slider used to be inside the content-sidebar area and I don't think it is now, so I'm going to guess that you will need to also do some digging into your home.php to get it rearranged (I think just tweaking the CSS will move the slider but not bring the sidebar up alongside it).


    I do the best I can with what I’ve got. (say hey on twitter)

    April 10, 2013 at 8:12 am #34499
    futurewebboss
    Member

    Thank you Robin. It did as you predicted. Are you suggesting that I moved the slider code (below)

    /** Add the slider on the homepage above the content area */
    add_action('genesis_after_header', 'agentpress_include_slider');
    function agentpress_include_slider() {
    if(is_front_page())
    dynamic_sidebar( 'slider' );
    }

    to a different place in the functions.php?

    April 10, 2013 at 8:19 am #34500
    Robin
    Member

    Yes, I think that is what you want. I would try changing the genesis_after_header to genesis_before_content (from the hook reference page) so it would be:
    /** Add the slider on the homepage above the content area */
    add_action(‘genesis_before_content’, ‘agentpress_include_slider’);
    function agentpress_include_slider() {
    if(is_front_page())
    dynamic_sidebar( ‘slider’ );
    }

    And theoretically with it going in the correct place you wouldn't actually need the CSS I told you to do. YMMV on this one because my PHP wobbles. Definitely have a backup of your functions.php before you muck around with it. Good luck!


    I do the best I can with what I’ve got. (say hey on twitter)

    April 10, 2013 at 8:27 am #34503
    futurewebboss
    Member

    That completely removed the slider,

    http://ginaspropertymanagement.com/

    April 10, 2013 at 8:41 am #34507
    Robin
    Member

    I'm not sure what to do next, then--like I said, my code wobbles. I've put out a call for backup so hopefully someone smarter than me will chime in. Sorry!


    I do the best I can with what I’ve got. (say hey on twitter)

    April 10, 2013 at 8:45 am #34512
    futurewebboss
    Member

    Thank you Robin for your time and your help.

    I'll be standing by.

    Dan

    April 10, 2013 at 8:46 am #34515
    cdils
    Participant

    Hi Dan,
    Robin's on the right track that you want it to be back in the content-sidebar area. Instead of genesis_before_content, you could try genesis_before_loop.

    Here's a good visual representation of Genesis hooks, just for reference: http://genesistutorials.com/visual-hook-guide/

    If that doesn't work, I'd suggest starting back at square one (set home.php back to the way it was) and let me know so I can see it in it's native state. 🙂

    Cheers,
    Carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂

    I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.

    April 10, 2013 at 8:52 am #34520
    futurewebboss
    Member

    Hi Carrie,

    Changed to genesis_before_loop and still no slider.

     

    April 10, 2013 at 8:55 am #34522
    futurewebboss
    Member

    Are you suggesting that I upload the agent press 1.0 functions.php when you say return to the native state?

    April 10, 2013 at 8:56 am #34523
    cdils
    Participant

    I'm seeing a slider on http://ginaspropertymanagement.com/ right now. Is your code back to "orginal"?


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂

    I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.

    April 10, 2013 at 8:58 am #34525
    futurewebboss
    Member

    Yes the slider is back. caching issue, but still not placed properly.

    April 10, 2013 at 8:59 am #34526
    futurewebboss
    Member

    This is what I currently have,

    /** Add the slider on the homepage above the content area */
    add_action('genesis_before_loop', 'agentpress_include_slider');
    function agentpress_include_slider() {
    if(is_front_page())
    dynamic_sidebar( 'slider' );
    }

    April 10, 2013 at 9:07 am #34531
    cdils
    Participant
    This reply has been marked as private.
    April 10, 2013 at 9:11 am #34533
    futurewebboss
    Member
    This reply has been marked as private.
    April 10, 2013 at 9:30 am #34543
    cdils
    Participant

    Oh goodness, there is some weirdness going on in there with the home page structure. You are running the old version of AgentPress and my usual troubleshooting methods are falling short.

    Is there a reason you don't want to upgrade to 2.0? There will be a little work re-styling, but I think it'd be worth it.


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂

    I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.

    April 10, 2013 at 9:38 am #34545
    futurewebboss
    Member
    This reply has been marked as private.
    April 10, 2013 at 9:43 am #34547
    cdils
    Participant

    I can totally relate to that!

    I'd go back to the client and explain that if they want to take advantage of newer functionality and bells/whistles, they need to invest in an upgrade. The alternative is to throw money out trying to fix up the older version. If it's not in their budget now, that's understandable, but that's their decision to make if they want it or not. Don't spin your wheels for free. 🙂


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂

    I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.

  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 24 total)
1 2 →
  • 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

© 2026 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