WordPress.org

Ready to get started?Download WordPress

Forums

help with html coding (3 posts)

  1. manmade1988
    Member
    Posted 1 year ago #

    Hi, I'm having a little trouble posting a cbc headline module on my site. Ont he cbc website, it says "You can now retrieve your JavaScript code below. Simply copy and paste the entire code in your web page and your headlines are ready to go live!" The code give is:

    <style type="text/css">
    #cbc_div { background: rgb(255, 255, 255); width: 250px; }
    #cbc_div h3 { background: rgb(255, 255, 255); }
    #cbc_div h3 a { color: rgb(168, 38, 43); font-family: Arial, Helvetica, sans-serif; font-size: 14px; text-decoration: none; }
    #cbc_div dl { border-bottom: 1px solid rgb(204, 204, 204); }
    #cbc_div dt a { color: rgb(19, 45, 108); font-family: Arial, Helvetica, sans-serif; font-size: 13px; }
    .cbc_lead { color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-left: 0px; }
    .cbc_timezone { color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-serif; font-size: 10px; margin-left: 0px; }
    #cbc_div .dl3, #cbc_div .dl4, #cbc_div .dl5, #cbc_div .dl6 { display: none; }
    </style><script language="javascript" src="http://www.cbc.ca/cgi-bin/freeheadlines/headlines.cgi?logo=0&cat=16,80"></script>

    But when I put this on my site as HTML it does not come out correctly. I should say that I am pretty computer illiterate and only know the most basic HTML coding so I'm really not sure what I'm doing wrong...Any help will greatly be appreciated. Thank you!

    Code moderated, Please follow these guidelines when posting code, to avoid your code being eaten by the forum!

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    How are you posting that? Directly in a post?
    Code cannot be plopped into a post, and function - it requires a plugin, or a theme modification to successfully get going.

    What is this code supposed to do, and where would it go on your site?

  3. manmade1988
    Member
    Posted 1 year ago #

    THANKS FOR THE REPLY...I'M CLICKING THE "TEXT" TAB ON THE PAGE WHERE I ADD A NEW POST - AND IT TAKES ME TO THE PLACE WHERE THE HTML CODE IS SUPPOSED TO BE WRITTEN. HOW DO I KNOW IF I NEED A PLUGIN (AND WHICH ONE) OR A THEME MODIFICATION? THE CODE IS FOR A "CBC NEWS MODULE" - A FREE PROGRAM FROM CBC SO THAT YOU CAN DISPLAY SOME HEADLINES FROM CBC FREE OF CHARGE ON YOUR WEBSITE. IT SAYS TO JUST COPY AND PASTE THE CODE, SO I DID...BUT AS I SAID, THE RESULT IS NOT FRUITFUL. IT WOULD GO ON A PAGE TITLED "WORLD NEWS AND USEFUL LINKS", AT THE TOP OF THAT PAGE, FOLLOWED BY A COLUMN OF LINKS TO OTHER NEWS WEBSITES.

Topic Closed

This topic has been closed to new replies.

About this Topic