Log in

No account? Create an account

Previous Entry | Next Entry

Hiding links

  • Sep. 16th, 2007 at 9:55 PM
I want to hide all the links under my entries except the comment and edit entry links. Can I do this? Also, Can I make the navigation links at the top of the page a little bigger?

Journal: silentheaven
Journal Style: Expressive - Bunnylicious Pink

I have a paid account and normally use firefox. Thank you!!


( 8 comments — Leave a comment )
Sep. 17th, 2007 12:09 pm (UTC)
.nav { font-size: 11px;}
You can change the 11 to whatever size you want. For the linkbar, you can change it with layer code or with CSS; your choice. I was actually planning a tutorial on hiding certain links, if you don't mind waiting.
Sep. 17th, 2007 12:30 pm (UTC)
Sure, I don't mind. I don't know how to change it at the moment anyway :) Thanks!
Sep. 19th, 2007 12:24 pm (UTC)
It's a bit of a hack, but since you only want one link in addition to the comment ones, it's easier to only display the one rather than try to "hide" all the others. This code goes into the theme layer, of course.
function Entry::print_linkbar() {
    var Link link;
    var string url = "";
    var string text = "";

    print """<div class="asset-meta">\n""";
    print """<ul class="asset-meta-list">\n""";


    $link = $this->get_link("edit_entry");
    if (defined $link) {
        $url = $link.url;
        $text = $*text_edit_entry != "" ? $*text_edit_entry : $link.caption;
        print safe """<li class="asset-meta-comments item asset-meta-no-comments"><a href="$url">$text</a></li>""";
    println "\n</ul>\n</div>\n";
Sep. 19th, 2007 07:05 pm (UTC)
Hmm, it doesn't seem to work. I put it in my css stylesheet box along with the other code you gave me. What should I do? Sorry, I'm really unfamiliar with the new codes and style sheets nowadays.
Sep. 19th, 2007 07:20 pm (UTC)
It doesn't go in the CSS box. You'll have to create a theme layer if you don't already have one. This goes at the top of the layer:
layerinfo "type" = "theme";
layerinfo "name" = "layer name here";
set base_theme = "bunnylicious-pink";
set theme_designer = "Ideacodes"; 
set theme_designer_type = "outside";
Change "layer name here" to whatever you want to call the layer, like "silentheaven_theme". Then, paste in the code in my earlier comment, hit "save and compile", and hopefully there will be no errors.
(Deleted comment)
Sep. 19th, 2007 10:07 pm (UTC)
The entrylink bar code worked but the bars that were between the hidden links are showing, how do I get rid of those?
Sep. 19th, 2007 10:24 pm (UTC)
Never mind! Fixed it! :)
Nov. 29th, 2007 02:14 pm (UTC)
THANK YOU!! I also used this and it worked wonderfully!

( 8 comments — Leave a comment )

Latest Month

March 2016

S2 Help Communities


Powered by LiveJournal.com
Designed by chasethestars