Home › Community Forums › Epik Theme Support › Home Page Design for Internal Pages
Tagged: align, design, Home page, internal page
- This topic has 15 replies, 2 voices, and was last updated 9 years, 5 months ago by
Wes.
-
AuthorPosts
-
October 10, 2013 at 9:35 am #7998
danielghebert
CustomerI’m trying to replicate some of the design that was on the home page on my “features” page, but it doesn’t seem to align right.
I’ve used the code that you provided in the tutorials, and pasted it in string while alternating the “right” or “left”:
<div class="feature-left feature-margin"> <h2>This title is wrapped inside h2 tags</h2> <p>This content is wrapped inside the "p" tag. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</br><center><a href="http://youtube.com" class="button large black">Large</a> <a href="http://youtube.com" class="button large green">Large</a></center></p> </div> <div class="feature-right"><img src="http://innetworknet.staging.wpengine.com/wp-content/uploads/2013/10/Woman-looking-with-screen-Haze.png"></a></div>
Is there something different I need to do in order to make it line up properly?
Thanks!
October 10, 2013 at 12:09 pm #8014Wes
ModeratorDo you have a link to the exact page it’s not working? I looked at your site from the link you provided in your previous thread but didn’t see what you were referring to.
October 10, 2013 at 12:19 pm #8015danielghebert
CustomerOh sorry! This is the page I’m trying to use to replicate the home page design:
http://innetworknet.staging.wpengine.com/features/
I’m not very technical when it comes to coding/CSS stuff, but will give it my best shot if you can guide me ๐
October 10, 2013 at 5:28 pm #8023Wes
ModeratorAdd the “feature left” div first, then add the “feature right”. So you may need to just reverse the div classes and they’ll line up like they are above.
October 11, 2013 at 3:51 pm #8064danielghebert
CustomerOK! That worked to align images on the right side, but the text is a bit off.
http://innetworknet.staging.wpengine.com/features/
Any suggestions?
Thanks!
October 12, 2013 at 11:51 am #8085Wes
ModeratorAre you adding this all within the same widget? If so, you should add them in their own separate “text” widget so they’ll be separate from each other (margins, padding, etc). If you don’t they’ll show up bunched together like they are now.
I’ve added background colors so you can see how they actually appear – http://i.imgur.com/sJ3U6dj.jpg
So add the left and right code together in their own text widgets separate from the other left and right code.
Let me know if that makes sense.
October 17, 2013 at 11:54 am #8218danielghebert
CustomerNot sure I understand how to do this – this is on the Features page, full width, which doesn’t have widgets (I think?).
I tried adding text arbitrary text widgets to grab the short-code, and insert that into the page, but it didn’t seem to work.
Thanks,
October 17, 2013 at 12:45 pm #8222Wes
ModeratorOh I thought this was added inside widgets on your homepage. The widget code was really designed for the homepage, so when you use it on a separate page it doesn’t use the homepage code.
I would clean up some of the breaks you have in your code, and just add in a div that includes both of the feature left/right div’s. Then add some bottom margin to create space between the divs. Thats the way it’s designed to work on the homepage and it should work for other pages as well.
Are you able to see how it’s done on the homepage? If so, you could just copy that same code and rename it, apply to the div class that you created on this new page.
Let me know if that helps.
October 17, 2013 at 12:53 pm #8224danielghebert
CustomerI think this is officially beyond my abilities :P. I’ll have to ask a designer/developer to help out I think.
Thanks for your help! ๐
October 17, 2013 at 12:58 pm #8225Wes
ModeratorI think you can do it, especially since you’ve gotten this far with it. I probably made it seem harder than it actually is.
If you want to give it a try, or if you need a quick example of what I’m talking about, just let me know. Glad to help.
October 17, 2013 at 1:00 pm #8226danielghebert
CustomerNot sure where to grab the code or update the code within WP. I’m starting to feel more comfortable with CSS, but still very new to both CSS and PHP ๐
If you can point me to the right direction, I can figure it out! Thanks!
October 17, 2013 at 11:16 pm #8241Wes
ModeratorBasically you would want to add both the feature left and right code inside of their own div container so they will be completely separate from the other div containers. Here is an example –
<div class="feature-clear">Replace this text with the Feature Left and Feature Right code here</div>
Notice I added a class called “feature-clear” as an example. You would need to add “feature-clear” to your style.css file and add some styling to it. i would recommend adding something along these lines –
.feature-clear { clear: both; margin: 0 0 40px; }
That code will clear the divs so they show up on their own line and not get mixed up with the other div containers. The 40px will be added to the bottom margin which will create space between the divs.
October 18, 2013 at 9:03 am #8246danielghebert
CustomerThanks! That worked perfect! ๐
Would this code also work for the pricing tables?
Thanks,
October 18, 2013 at 12:19 pm #8253Wes
ModeratorIt should, if you’re trying to do the same thing.
October 18, 2013 at 12:23 pm #8254danielghebert
CustomerI tried and it didn’t work – but it’s a different issue. I’ll start a new topic so others can follow as well ๐
Thanks,
October 18, 2013 at 10:14 pm #8270Wes
ModeratorOk I’ll check it out.
Thanks
-
AuthorPosts
- The topic ‘Home Page Design for Internal Pages’ is closed to new replies.