Community Forums › Forums › Archived Forums › Design Tips and Tricks › Agent Press 1.0 to 1.01 Upgrade Problem
Tagged: agent press 1.0
- This topic has 23 replies, 3 voices, and was last updated 11 years ago by cdils.
-
AuthorPosts
-
April 9, 2013 at 4:15 pm #34388futurewebbossMember
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 #34484RobinMemberWithout 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 #34493futurewebbossMemberThank 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 #34496RobinMemberChange 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 #34499futurewebbossMemberThank 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 #34500RobinMemberYes, 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 #34503futurewebbossMemberThat completely removed the slider,
April 10, 2013 at 8:41 am #34507RobinMemberI'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 #34512futurewebbossMemberThank you Robin for your time and your help.
I'll be standing by.
Dan
April 10, 2013 at 8:46 am #34515cdilsParticipantHi 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 #34520futurewebbossMemberHi Carrie,
Changed to genesis_before_loop and still no slider.
April 10, 2013 at 8:55 am #34522futurewebbossMemberAre 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 #34523cdilsParticipantI'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 #34525futurewebbossMemberYes the slider is back. caching issue, but still not placed properly.
April 10, 2013 at 8:59 am #34526futurewebbossMemberThis 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 #34531cdilsParticipantThis reply has been marked as private.April 10, 2013 at 9:11 am #34533futurewebbossMemberThis reply has been marked as private.April 10, 2013 at 9:30 am #34543cdilsParticipantOh 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 #34545futurewebbossMemberThis reply has been marked as private.April 10, 2013 at 9:43 am #34547cdilsParticipantI 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.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.