Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9700

    Hi. When I post a blog with your theme inside each post the title is linked to the post page. So when you click on the link it goes to the same page it was linked from. Is there a way to remove the links?

    #65621

    Open up includes/loop-index.php and replace:

    <h1 class='post-title <?php echo $titleClass; ?>'>
    <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','avia_framework')?> <?php the_title(); ?>"><?php the_title(); ?></a>
    </h1>

    with following code:

    <?php if( ! is_single() ) { ?>
    <h1 class='post-title <?php echo $titleClass; ?>'>
    <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','avia_framework')?> <?php the_title(); ?>"><?php the_title(); ?></a>
    </h1>

    <?php }else{ ?>
    <h1 class='post-title <?php echo $titleClass; ?>'>
    <?php the_title(); ?>
    </h1>

    <?php } ?>

    #65622

    It is also doing it in the product pages with the WooCommerce plugin. Is there any way to address that as well?

    #65623

    Yes – sure. Open up flashlightwoocommerce-configconfig.php and replace:

    <h1 class='post-title <?php echo $titleClass; ?>'>
    <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','avia_framework')?> <?php the_title(); ?>"><?php the_title(); ?></a>
    </h1>

    with:

    <h1 class='post-title <?php echo $titleClass; ?>'>
    <?php the_title(); ?>
    </h1>

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Removing blog post title links.’ is closed to new replies.