Hi all,
I would like to disable the links that appear as the titles on content postings. Currently I only have one content posting as my front page, but i'm going to assume that all titles go by the name of h2 (correct me if i'm wrong).

So i'm guessing that

.title h2 {
text-decoration: none;
}

would

    NOT

do the trick because that would only hide the underline of the link, where as I would like to completely disable the link capability. I'm guessing that there must be an option to do so somewhere in drupals admin options.

Thanks for any help in advance,

Jon

Comments

jon.girard’s picture

Hi Jon,

To do so, you simply, removing the <a href="<?php print $node_url?>"> from that set of lines (below) in your node.tpl.php file.

<?php if ($page == 0) { ?>
    <h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h2>
<?php }; ?>

Or if you want page links to dissapear and story links to remain you can remove all of the above lines and simply replace them with:

<?php if ($page == 0 && $node->type=='page') { ?>
    <h2 class="title"><?php print $title?></h2>
<?php }elseif($page == 0){ ?>
    <h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h2>
<?php }; ?>

Simple, ain't it?

JonGirard-1’s picture

Thanks that worked perfectly!

igbonine’s picture

Just subscribing.
Thanks.