WordPress.org

Ready to get started?Download WordPress

Forums

How to add a CSS into the themes CSS style sheet editor (8 posts)

  1. alainsojourner75
    Member
    Posted 1 year ago #

    I'm using Delicious Magazine. My question is: how can I add a css into the theme's css style sheet.

    I want to add this link from infolinks:

    <script type="text/javascript">
    var infolinks_pid = 43100;
    var infolinks_wsid = 0;
    </script>
    <script type="text/javascript" src="http://resources.infolinks.com/js/infolinks_main.js"></script>

    Go to your website’s source code, and right before the closing tag at the bottom, paste the code provided in the white box.

    i posted the script above to the css style sheet editor with /* and */ , but it didn't work. i tried to read css lessons but i just couldn't get it.

    can anyone teach me? thanks.

  2. ronangelo
    Member
    Posted 1 year ago #

    That's not CSS. That specific infolinks code is usually added just before the closing </body> tag. This is usually located on footer.php.

    There's also an infolink plugin that would do this for you.
    http://wordpress.org/extend/plugins/infolinks-officlial-plugin/

  3. alainsojourner75
    Member
    Posted 1 year ago #

    Hi ronangelo,
    Thanks for that.
    There's no plugin button in the theme.
    But there's a box that's called: CSS Stylesheet Editor
    and it has the following text:

    /* Welcome to Custom CSS!

    If you are familiar with CSS or you have a stylesheet ready to paste, you may delete these comments and get started.

    CSS (Cascading Style Sheets) is a kind of code that tells the browser how to render a web page. Here's an example:

    img { border: 1px solid red; }

    That line basically means "give images a red border one pixel thick."

    CSS is not very hard to learn. If you already know a little HTML it will be fun to move things around on the web page by changing your stylesheet. There are many free references to help you get started.

    We hope you enjoy developing your custom CSS. Here are a few things to keep in mind:

    You can not edit the stylesheets of your theme. Your stylesheet will be loaded after the theme stylesheets, which means that your rules can take precedence and override the theme CSS rules.

    CSS comments will be stripped from your stylesheet. */

    /* This is a comment. Comments begin with /* and end with */

    /*
    Things we strip out include:
    * HTML code
    * @import rules
    * expressions
    * invalid and unsafe code
    * URLs not using the http: protocol

    Things we encourage include:
    * @media blocks!
    * sharing your CSS!
    * testing in several browsers!
    * helping others in the forum!

    */

    Then below the box, I ca click the button that says: Add this to the Delicious Magazine theme's CSS stylesheet

    I tried to include the infolinks above inside this CSS Style sheet editor but just like you said, it's not CSS. Any option I can do this?

    Thanks a lot. And happy new year!

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Where is your site hosted? Sounds like maybe on WordPress.COM??

  5. alainsojourner75
    Member
    Posted 1 year ago #

    it's hosted by blog.com.
    as i understood it, it's a wordpress-powered blog.
    i also have another blog here in wordpress but that works fine.

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    It looks like blog.com may not give you full control over your site (like fully self-hosted WP sites) -- it's set up more like WordPress.COM? In any case, have you asked on their site:

    http://support.blog.com/

  7. alainsojourner75
    Member
    Posted 1 year ago #

    yes, it's set-up like wordpress. i paid for the unblock the ad column and custom design, thus, I can insert the css codes if i want to. i tried to find where the footer.php is but i can't.

    I emailed the support many times and have been waiting for 2 weeks now but NO response. Their knowledgebase search is useless. I can't find anything related to it. They boast of 2 million bloggers but i can't find any forums like this here in wordpress.

    thanks for the response.

    would be glad if you could help. :)

  8. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    I'm not familiar with blog.com, but it sounds like you cannot modify theme files (i.e. footer.php). Custom design is probably only CSS -- but you can't ever put javascript in CSS files (as ronangelo said above). Sounds frustrating, but I don't think you'll find anyone here who can help you with blog.com questions. At this point, perhaps you should consider a self-hosted WordPress site -- in which case, you'll have full control over the site and get support here (so long as you are using a theme from the theme repository here:
    http://wordpress.org/extend/themes/ )

    You would most likely be able to transfer your existing site to a new self-hosted site if you opt to do that.

Topic Closed

This topic has been closed to new replies.

About this Topic