WordPress.org

Support

Support » Plugins and Hacks » List category posts » Remove Link From Post Title

Remove Link From Post Title

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try this as custom CSS:

    .titleclass{
    pointer-events: none;
    cursor: default;
    }

    Hey thanks bowoolley,

    That works, but it still looks like a link and still has a link in the code. I think that’s a pretty big spam flag to have links you can’t click on.

    With all the functionality here, I’m sure there is a way to just have the title show as text vs a link. I just can’t figure it out.

    Hey guys.
    At
    /wp-content/plugins/list-category-posts/include/CatListDisplayer.php
    line 247

    you can change

    private function get_post_title($single, $tag = null, $css_class = null){
        $info = '<a href="' . get_permalink($single->ID) .
          '" title="'. $single->post_title . '">' .
          apply_filters('the_title', $single->post_title, $single->ID) . '</a>';
        return $this->assign_style($info, $tag, $css_class);
      }

    to

    private function get_post_title($single, $tag = null, $css_class = null){
        $info = apply_filters('the_title', $single->post_title, $single->ID);
        return $this->assign_style($info, $tag, $css_class);
      }

    of course this is a code change and will dissapear if you update the plugin to a newer version.

    As I’m new here I appologise the developer if it is not right to hard change the code, just trying to help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Link From Post Title’ is closed to new replies.
Skip to toolbar