Community Forums › Forums › Archived Forums › Design Tips and Tricks › Agency Pro – Home Bottom -> Make it behave like the Home Middle
- This topic has 7 replies, 2 voices, and was last updated 12 years ago by
[email protected].
-
AuthorPosts
-
August 24, 2014 at 5:34 pm #120830
[email protected]
MemberHi there,
I am using the Agency Pro theme.
I would like to know how I can make the Home Bottom (widget - Recent Articles)) work like the Home Middle (widget - Our Work). I want it so then the post (box) only shows the featured picture, but when you hover over it with the mouse, it transitions grey, and shows the text. For some reason, I can't get the featured picture to be in the same size and format as the Home Middle (widget - Our Work). Basically, I want the Home Bottom to look and behave exactly like the Home Middle.
I hope that makes sense... please let me know if you have any other questions. Many thanks!
Best,
http://www.optimizedwebmedia.com/
DonaldAugust 25, 2014 at 1:26 am #120865Brad Dalton
ParticipantTry replacing the code with the home middle code. You'll need to do this with the PHP only as long as you use the same classes
August 26, 2014 at 12:39 am #121061[email protected]
MemberHi there,
Thanks for your reply. Can you please provide me with more detailed instructions on how to do this? which PHP? and code?
Thanks in advance!
Best,
DonaldAugust 26, 2014 at 2:07 am #121077Brad Dalton
ParticipantAugust 27, 2014 at 12:58 am #121248[email protected]
MemberHi there,
I haven't tried anything, because I don't know what is meant by:
"You’ll need to do this with the PHP only as long as you use the same classes"...I'm not sure which part I should be editing... is it the style.css?
Which css code to I replace with what?
Sorry, I'm still learning.... thanks in advance for your help.
Best,
DonaldAugust 27, 2014 at 9:07 am #121332Brad Dalton
ParticipantIn the front-page.php file, replace the home-bottom code with the code for the home-middle.
No CSS edits are needed.
As a web designer, i suggest you install WordPress locally, load up the theme and modify the code in that file.
This is an excellent way to learn how SP themes work.
If i do your work for you, you won't learn a thing.
There's not much code you need to modify, just one class in the PHP which generates the widget.
'before' => '<div id="home-bottom" class="home-middle widget-area"><div class="wrap">',
August 27, 2014 at 10:21 am #121350August 30, 2014 at 7:06 pm #121952[email protected]
MemberAwesome thanks!
So after I make the change in the PHP, do I then adjust the widget for HOME BOTTOM, to make is the same as HOME MIDDLE?
Best,
Donald -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.