sprite images

  • jkeis

    #10788

    Hmmm… I created menus via categories but these categories, “In the News” for instance, has sub-categories attached to them – “Science & Technology” and “Politics” so far. I don’t see these subs… so maybe I did not set them up correctly?

    jkeis

    #10789

    I got it! 🙂

    Ok, so yeah… your RSS code… where’s the code which specifically calls http://url/feeds? I think I will have to mimic that code in order for the rest of my buttons to work – facebook, twitter, and email subscriptions.

    Admin

    Syahir Hakim

    #10790

    This is the part of the code that generates the feeds URL: <?php bloginfo('rss2_url'); ?>

    It’s a wordpress function. You can read more about it (including what other values you can get using that function) at the WordPress Codex Page.

    jkeis

    #10791

    ahh ok… hmm. So if I wanted to implement a button that basically links to my twitter account, how may I go about doing that? Any code I can “borrow” from that subscription widget I posted previously?

    Admin

    Syahir Hakim

    #10792

    Your Twitter account is not related to WordPress in any way. Why not just hardcode the link? For Twitter, it should be something like http://www.twitter.com/twitterusername

    jkeis

    #10793

    do I do that in the style.css or in some other file?

    Admin

    Syahir Hakim

    #10794

    You should do it in the template file that corresponds to where you want to put the link. If you want to put it beside the RSS icon on the top bar, then it should be in the header.php file after the RSS I quoted several posts before.

    jkeis

    #10795

    would you be able to tell me what the placement should be for the 2nd icon (then I can take it from there… right now I have

    #mail a{

    margin:6px 0 0 68px;

    float:left;

    width:45px;

    height:45px;

    background:url(images/icons/mailglass.png) no-repeat;

    #mail span{

    display:none;

    }

    }

    #mail span{

    display:none;

    }

    located 45px over to the right from the RSS (68). Is my logic right here? 🙂

    Admin

    Syahir Hakim

    #10796

    That CSS will place the 2nd icon 68px to the right of the RSS, with it’s size being 45px wide and 45px high.

    I’m sorry, but I have to say that these are pretty simple adjustments to make if you know enough HTML and CSS, which isn’t much.

    jkeis

    #10797

    Ah to the right of RSS and not from the left margin, I got it. What I wanted to do is update your original sprite which I never had to do before… so yeah, it’s simple once you know it. 🙂

Viewing 10 posts - 21 through 30 (of 40 total)

  • You must be logged in to reply to this topic.
Do NOT follow this link or you will be banned from the site!