How can I add html to my site?
-
I have the html code for a goodreads widget, much like the facebook widget, that shows my books there. I can’t figure out where to put the code though! I want it on my sidebar with the rest of the widgets. How do you add a widget that isn’t included with the default widgets but that you have the code for? Thanks so much for any help!
The blog I need help with is: (visible only to logged in users)
-
Hi. In order for us to properly answer your question, please copy and paste the entire code you tried to insert. For the purpose of these forums only, please insert the code between <code> and </code>, otherwise we won’t be able to see the code.
-
Well, I’ll paste the code here, but the problem isn’t that the code didn’t work. I just don’t know WHERE to insert the code. I haven’t tried to insert it at all because I can’t find where I’m supposed to insert it.
Here is the code, in case it will still help.
<style type="text/css" media="screen">
.gr_container {
font-family:arial,verdana,helvetica,sans-serif;
width: 250px;
}
.gr_book_container {
border-bottom: 1px solid #d7d7d7; padding: 5px 0px;
}
.gr_book_image {
float: left; padding-right: 20px;
}
.gr_book_title {}
.gr_review_stats {}
</style>Lisa Taylor's books on Goodreads<div id="gr_author_widget_1322448225"><!-- Include static html in case javascript is not supported. This will be overridden if things are working. --><div class="gr_container">
<div class="gr_book_container"><img alt="The Invention" border="0" src="http://ecx.images-amazon.com/images/I/51vvhu0jcTL._SL75_.jpg" />The Invention (SHANA BLACK)
<div class="gr_review_stats">reviews: 3
ratings: 5 (avg rating 5.00)</div><br style="clear: both"/></div><div class="gr_book_container"><img alt="The Hour of Tiamat" border="0" src="http://ecx.images-amazon.com/images/I/519OCTuX9iL._SL75_.jpg" />The Hour of Tiamat
<div class="gr_review_stats">reviews: 4
ratings: 65 (avg rating 4.50)</div><br style="clear: both"/></div><div class="gr_book_container"><img alt="The First Mission Volume 2" border="0" src="http://ecx.images-amazon.com/images/I/51N4f6fMk9L._SL75_.jpg" />The First Mission Volume 2
<div class="gr_review_stats">reviews: 1
ratings: 3 (avg rating 5.00)</div><br style="clear: both"/></div><div class="gr_book_container"><img alt="A Not So Warm Welcome" border="0" src="http://ecx.images-amazon.com/images/I/51RtDopnBIL._SL75_.jpg" />A Not So Warm Welcome (SHANA BLACK)
<div class="gr_review_stats">ratings: 1 (avg rating 5.00)</div><br style="clear: both"/></div><div class="gr_book_container"><img alt="Book of Dreams and Nightmares" border="0" src="http://ecx.images-amazon.com/images/I/41krhtwdb7L._SL75_.jpg" />Book of Dreams and Nightmares
<div class="gr_review_stats">ratings: 5 (avg rating 4.00)</div><br style="clear: both"/></div>
</div></div>
<script type="text/javascript" charset="utf-8" src="http://www.goodreads.com/author/author_widget/4788373.Lisa_Taylor?widget_id=1322448225"></script> -
To answer your question, HTML codes usually go into a text widget.
http://en.support.wordpress.com/widgets/text-widget/However (and this is why I asked for the code) part of your code will NOT work here as it contains JavaScript:
-
Text widget…and it’s right there with the other default widgets. Wow I feel dumb. And you saved me from asking another question about the code, so thanks so much for your help :)
-
- The topic ‘How can I add html to my site?’ is closed to new replies.