Hiding links

Sep 16, 2007 21:55

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!!

entries:linkbar, header:nav links:font

Leave a comment

Comments 8

av8rmike September 17 2007, 12:09:46 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.

Reply

silentheaven September 17 2007, 12:30:17 UTC
Sure, I don't mind. I don't know how to change it at the moment anyway :) Thanks!

Reply


av8rmike September 19 2007, 12:24:38 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 """
\n""";
print """
    \n""";

    $.comments->print();

    $link = $this->get_link("edit_entry");
    if (defined $link) {
    $url = $link.url;
    $text = $*text_edit_entry != "" ? $*text_edit_entry : $link.caption;
    print safe """
  • $text
  • """;
    }
    println "\n
\n\n";
}

Reply

silentheaven September 19 2007, 19:05:12 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.

Reply

av8rmike September 19 2007, 19:20:45 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.

Reply

(The comment has been removed)


Leave a comment

Up