Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • I wanted to remove links for parent categories too! Didn’t like any of the options above, so came up with this. Adapt and use this in your jquery file:

    //remove link for parent categories
     	$('ul.children').parent(['li']).find('a:first').removeAttr('href');

    I had a similar problem and ended up here. I didn’t want to edit the wp-comments-post.php because it would change the redirect behavior everywhere comments were used.

    This inspired me to work with a hidden redirect_to field in a new index-comments.php file because I wanted this redirect only for a user commenting on the home page. I then called it like this in my index.php
    <?php comments_template("/index-comments.php"); of course after setting the <?php $withcomments = 1 ?> way before the loop.

    Thanks for answering yourself. It surely helped me.

Viewing 2 replies - 1 through 2 (of 2 total)