How do I change the size of the blog post titles on the posts page?

I’d like to make the blog post titles smaller on the blog posts page but not on the actual post page. Is that possible?

Also, I am using Disqus Comments and would like to disable the built in comments link or at least have it open with an anchor link to the start of the Disqus comments. How do I do that?

Hello Donna,

Thanks for writing in!

1.) To make the blog post titles smaller on the blog posts page but not on the actual post page, please add the following CSS code in the X > Theme Options > Global CSS (http://prntscr.com/evui3r)

.blog .x-iso-container-posts .entry-title,
.archive .x-iso-container-posts .entry-title {
    font-size: 130%;
}

2.) To change the link of the comments in the post meta, since the child theme is set up, please add the following code in your child theme’s functions.php file

function custom_comments_link($comments_link){
  if ( is_plugin_active( 'tco-disqus-comments/tco-disqus-comments.php' ) ) {
    $hash = '#comments' : '#disqus_thread';
    $comments_link = get_permalink( $post_id ) . $hash;
  }

  return comments_link;
}
add_filter('x_entry_meta_comments_link', 'custom_comments_link');

We would loved to know if this has work for you. Thank you.

1 Like

That worked great to change the font size! But when I posted that function code into my child theme for the comments link it broke the page.

Hey Donna,

There was a typo error in the code. Please use this:

function custom_comments_link($comments_link){
  if ( is_plugin_active( 'tco-disqus-comments/tco-disqus-comments.php' ) ) {
    $hash = '#disqus_thread';
    $comments_link = get_permalink( $post_id ) . $hash;
  }

  return comments_link;
}
add_filter('x_entry_meta_comments_link', 'custom_comments_link');

Please let us know how it goes.

Thanks, now when I click the comment link it takes me to a page that says:

This site can’t be reached comments_link’s server IP address could not be found.
Search Google for comments link
ERR_NAME_NOT_RESOLVED

Hey Donna,

Please update the code for the last time.

function custom_comments_link($comments_link){
  if ( is_plugin_active( 'tco-disqus-comments/tco-disqus-comments.php' ) ) {
    $hash = '#disqus_thread';
    $comments_link = get_permalink( $post_id ) . $hash;
  }

  return $comments_link;
}
add_filter('x_entry_meta_comments_link', 'custom_comments_link');

Sorry there was a missing $ in the return variable.

Great thanks, that worked! Thanks for all your help!

You’re welcome!
We’re glad we were able to help you out.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.