Create Read more With Background Color

Ah, this is still about “read more” and perhaps a few posts later will be about read more and its variations to be more attractive. Today’s post is about Create Read more With Background Color.

I recommend you to read my previous post about making the read more : Here

Commonly, the text “read more” is only the link text, but from its appearance, it’s rather unattractive. If you want to modify it in order to become more attractive, you can add the background, as first alternative.

for the demo you can see on the main page on this BLOG


The following is how to create read more with background color.
  1. Login to blogger with your ID.
  2. Click Design.
    blogger design
  3. Click Edit HTML.
    blogger edit html
  4. Backup your full template by clicking on the Download Full Template.
    download full template
  5. Find the code ]]></b:skin>
  6. Copy and paste the code below exactly above the code ]]></b:skin>
.jump-link a{
  -moz-border-radius:5px;
  -khtml-border-radius: 5px;
  -webkit-border-radius: 5px;
  padding:2px 12px;
  font-style: italic;
  border:1px solid #b7b7b6;
  margin:10px 0px;
  text-decoration:none;
  color:#000;
  background:#ccc;
  text-align:right;
  float:right;
}
.jump-link a:hover{
  border:1px solid #545353;
  color:#fff;
  background:#797878;
}
  1. Click SAVE TEMPLATE.
  2. Done.
The code above is an example. You can still change the CSS code as you desire, based on your blog design. The color given is gray, but you can change with other colors, e.g.
background:#ccc;
Replace the color code with your favorite color code, as:
background:# 1881f7;
If you have edited the code, don’t forget to Save Template.



Calling code css
  • Tick the small box beside the words Expand Widget Templates
expand-widget-templates
  • press Ctrl + F on your keyboard then write  <data:post.body/>  and hit Enter

 


 

<b:if cond='data:blog.pageType != &quot;item&quot;'>
<div expr:id='&quot;summary&quot; + data:post.id'><data:post.body/></div>
<script type='text/javascript'>createSummaryAndThumb(&quot;summary<data:post.id/>&quot;);
</script>
<span class='rmlink' style='float:right;padding-top:20px;'>
<a expr:href='data:post.url'>&#187;&#187;&#160;&#160;read more</a></span>
</b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'><data:post.body/>
</b:if>
Just Replace rmlink to jump-link
  • so the code will be as below
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<div expr:id='&quot;summary&quot; + data:post.id'><data:post.body/></div>
<script type='text/javascript'>createSummaryAndThumb(&quot;summary<data:post.id/>&quot;);
</script>
<span class='jump-link' style='float:right;padding-top:20px;'>
<a expr:href='data:post.url'>&#187;&#187;&#160;&#160;read more</a></span>
</b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'><data:post.body/>
</b:if>
  • CLick save template
  • if you have a problem or Question let me know and ill try to help
  • GL





comment 1 comments:

harajuku said...

you're welcome mate :D

Post a Comment

Delete this element to display blogger navbar

 
© 2010 Harajuku Collection is proudly powered by Blogger