Agent Press 1.0 to 1.01 Upgrade Problem

Community Forums Forums Design Tips and Tricks Agent Press 1.0 to 1.01 Upgrade Problem

This topic is: not resolved

This topic contains 23 replies, has 3 voices, and was last updated by  cdils 1 year, 6 months ago.

Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • #34388

    futurewebboss
    Participant
    Post count: 64

    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

    #34484

    Robin
    Participant
    Post count: 321

    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)

    #34493

    futurewebboss
    Participant
    Post count: 64

    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

    #34496

    Robin
    Participant
    Post count: 321

    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)

    #34499

    futurewebboss
    Participant
    Post count: 64

    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?

    #34500

    Robin
    Participant
    Post count: 321

    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)

    #34503

    futurewebboss
    Participant
    Post count: 64

    That completely removed the slider,

    http://ginaspropertymanagement.com/

    #34507

    Robin
    Participant
    Post count: 321

    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)

    #34512

    futurewebboss
    Participant
    Post count: 64

    Thank you Robin for your time and your help.

    I’ll be standing by.

    Dan

    #34515

    cdils
    Participant
    Post count: 421

    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 Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    #34520

    futurewebboss
    Participant
    Post count: 64

    Hi Carrie,

    Changed to genesis_before_loop and still no slider.

     

    #34522

    futurewebboss
    Participant
    Post count: 64

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

    #34523

    cdils
    Participant
    Post count: 421

    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 Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    #34525

    futurewebboss
    Participant
    Post count: 64

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

    #34526

    futurewebboss
    Participant
    Post count: 64

    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’ );
    }

Viewing 15 posts - 1 through 15 (of 24 total)

You must be logged in to reply to this topic.