Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 9th Apr 2011, 08:38 PM   #1
Active Warrior
 
Join Date: 2010
Posts: 37
Thanks: 1
Thanked 0 Times in 0 Posts
Default
Adding Boxes on Pages
Share on: 
fb share twitter share gplus share more share

Hello Everyone,

I would like to know how to put the text on a page in to a large box for lack of better words. I want to put the first few sentences of my post in an area that is enclosed with a read more button in the rectangle also. Is that something that is possible? Thanks

Power User is offline  
Unread 10th Apr 2011, 09:45 AM   #2
HyperActive Warrior
War Room Member
 
Join Date: 2010
Location: joyfuldesigner.com
Posts: 494
Thanks: 202
Thanked 68 Times in 54 Posts
Default
Re: Adding Boxes on Pages
Share on: 
fb share twitter share gplus share more share

what do you use?

wordpress? html?

spesialis is offline  
Unread 10th Apr 2011, 10:00 AM   #3
Advanced Warrior
War Room Member
 
ronc0011's Avatar
 
Join Date: 2010
Posts: 803
Thanks: 14
Thanked 62 Times in 57 Posts
Default
Re: Adding Boxes on Pages
Share on: 
fb share twitter share gplus share more share

There are other attributes you can apply to the div tag. I just picked a few to demonstrate how to do it.
If you are doing this in a Wordpress site applying the "Style" at the tag level should over ride any styling defined elsewhere in the site.

Code:
 
<div style="width:500px; margin-left:auto; margin-right:auto;border:solid 1px Black;">
 

<p> Your text would go here</p>
 
<a href="http://www.someURLgoesHere.com" >Your "learn more" text would go here</a>
 
</div>
ronc0011 is offline  
Unread 10th Apr 2011, 01:11 PM   #4
HyperActive Warrior
War Room Member
 
Join Date: 2008
Posts: 171
Thanks: 4
Thanked 26 Times in 22 Posts
Default
Re: Adding Boxes on Pages
Share on: 
fb share twitter share gplus share more share

If you're using WordPress and want to have a magazine style blog with a read more link for each post you can change some code in the index.php to display the first 50 or so words "the excerpt" of the post and not the whole post.

go to your index.php file of your WordPress theme and search for the following code and change

Code:
the_content
with

Code:
the_excerpt
If you would like more information you can take a look at the following page

Function Reference/the excerpt « WordPress Codex

Follow me on Twitter and My Blog
200 FREE Sources of Stock Photos, Images, Backgrounds and Textures Free PDF no opt-in
Download My Training Call With Lee McIntyre Over 70 Minutes Of Juicy Internet Marketing Content FREE
Harry Spencer is offline  
Closed Thread


Bookmarks

Tags
adding, boxes, pages


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 07:04 PM.