WordPress.org

Support

Support » Themes and Templates » codes not appearing on web site

codes not appearing on web site

  • Hey, I copied a code from Yahoo News and inserted it into my web site, and it does not show. This is the first time this is happeneing for quite some time, i use to do this a lot from a long time ago, and this is the first time it is not working. How can i fix this? Please reply, Thanks !

Viewing 11 replies - 1 through 11 (of 11 total)
  • esmi

    @esmi

    Forum Moderator

    What code did you add and where?

    I added an html code from Yahoo News, into the html area of a page in my wordpress blog.

    esmi

    @esmi

    Forum Moderator

    Did you use the HTML or Visual tab?

    html tab

    esmi

    @esmi

    Forum Moderator

    What code did you add?

    an html code…

    When Esmi asks what code, Esmi is actually asking you to provide the code you have added…

    Please provide the ‘actual’ code you used…

    I used many. One yahoo news, and some other codes.

    The actual code of the Yahoo news is…..

    <!–:en–><!– #ynbadge { font:13px arial,helvetica,clean,sans-serif; *font-size:small; *font:x-small; } #ynbadge h2 { margin-bottom:12px; width:198px; height:25px; background:url(http://l.yimg.com/us.yimg.com/i/us/nws/common/yahoo-logo2.png) no-repeat; _background-image:none; _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’http://l.yimg.com/us.yimg.com/i/us/nws/common/yahoo-logo2.png’, sizingMethod=’crop’); } #ynbadge h2 a { position:relative; display:block; text-indent:-999em; overflow:hidden; width:198px; height:25px; } #ynbadge h3 { background-color:#06214d; color:#fff; font:bold 77% Verdana, arial; padding:2px 5px; text-transform:uppercase; margin:0 0 10px 0; zoom:1; } #ynbadge a:link, #ynbadge a:visited { color:#003499; text-decoration:none; } #ynbadge ul { list-style:none; margin:0; padding:0; } #ynbadge ul li { border-bottom:1px dashed #ccc; margin:0 0 10px 0; padding:0 0 10px 0; zoom:1; } #ynbadge ul li:after{ content:”.”; display:block; height:0; clear:both; visibility:hidden; } #ynbadge ul li img { float:left; margin:0 10px 0 0; border:none; } #ynbadge ul li p { margin:0; padding:0; } #ynbadge ul li h4 { margin:0 0 5px 0; } #ynbadge ul li h4, #ynbadge ul li h4 a { font:normal 121% Georgia; line-height:1em; } #ynbadge .noimg li img { display:none; } #ynbadge .noimg li h4, #ynbadge .noimg li p { display:inline; } #ynbadge .nosummaries li img, #ynbadge .nosummaries li p { display:none; } #ynbadge .nosummaries li h4 { margin:0px; } #ynbadge .nosummaries li h4, #ynbadge .nosummaries li h4 a { font:normal 100% arial; } #ynbadge .ynews-search { font:normal 77% verdana; } #ynbadge .ynews-search fieldset { border:none; margin:0; padding:0; } #ynbadge .ynews-search legend { display:none; } #ynbadge .ynews-search label { color:#666; font-weight:bold; vertical-align: middle; padding-right: 5px; display:none; } #ynbadge .ynews-search input#p { width:111px; border-bottom:1px solid #ccc; padding:1px; margin:0px -2px 0 0; vertical-align:middle; font-size:103%; font-family: verdana; } #ynbadge .ynews-search .ygbt { text-align:center; padding:0 0 1px; _padding:1px 0 2px; width:9em; vertical-align:middle; font:bold 100%/1.3 verdana; overflow:hidden; cursor:pointer;cursor:hand; background:#ce9200 url(http://l.yimg.com/us.yimg.com/i/us/nws/common/news_header2.gif) -680px -8px repeat-x; border:1px solid #999b9a; *border:0; _margin: -1px; } #ynbadge .ynews-search span { *display:inline-block; border:0; *border:1px solid #999b9a; *vertical-align: middle; } /* safari hack for submit button */ ::root #ynbadge .ynews-search input#p { margin-right:-1px; } ::root #ynbadge .ynews-search .ygbt { padding: 1px 0 2px; } –>

    <script src=”http://news.yahoo.com/badges/headlines/badge?t=787-3-10″ type=”text/javascript”></script>

    <object width=”300px” height=”250px” data=”http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Fwwwwatchyours-20%2F8003%2Faf1199bb-0120-4635-b0bd-8ae6a4429ab9&Operation=GetDisplayTemplate” type=”application/x-shockwave-flash”><param name=”id” value=”Player_af1199bb-0120-4635-b0bd-8ae6a4429ab9″ /><param name=”quality” value=”high” /><param name=”bgcolor” value=”#FFFFFF” /><param name=”allowscriptaccess” value=”always” /><param name=”src” value=”http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Fwwwwatchyours-20%2F8003%2Faf1199bb-0120-4635-b0bd-8ae6a4429ab9&Operation=GetDisplayTemplate” /><param name=”name” value=”Player_af1199bb-0120-4635-b0bd-8ae6a4429ab9″ /><param name=”align” value=”middle” /></object><noscript></noscript>
    <!–:–>

    And some other codes are…………..

    <IMG alt=”Dress Code Formal” border=”0″ src=”http://www.dresscodeformal.com/lshare/banners/125x125_banner_win_dress_01.gif”>

    and others of the same kind.

    esmi

    @esmi

    Forum Moderator

    Don’t use the first block of code for Yahoo News. Try just using:

    <script src="http://news.yahoo.com/badges/headlines/badge?t=787-3-10" type="text/javascript"></script>

    Can’t see why there’d be any problems with the Amazon code (other than the object may be a little too wide for your sidebar) or the dresscodeformal markup (might want to check that the image url is correct, though).

    What do you mean ‘the first block of code for Yahoo News’. You mean to replace <script src=”http://news.yahoo.com/badges/headlines/badge?t=787-3-10″ type=”text/javascript”></script> with the whole Yahoo news code? or just to replace it with a small part of the code? if a small part? which part?

    You don’t understand. No ads are showing, the only thing that shows on the page is ‘comments are closed’ but no ads, or yahoo news. However, In the admin area, the code is shown in the html tab, but not on the browser, only ‘comments are closed’

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘codes not appearing on web site’ is closed to new replies.