Forum Support

Shape 5
March 28, 2024, 11:19:06 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Page title and permalinks  (Read 796 times)
hwkelly
Jr. Member
**
Offline Offline

Posts: 11



« on: May 17, 2017, 05:41:47 AM »

The theme automatically creates a link on the page title to itself.  How do I stop that and remove the existing links?
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #1 on: May 17, 2017, 11:48:17 AM »

In the content.php file of the theme, you can find the following code at around line 51 and change it. 

From:
Code:
<a class="wp-contenttitle" href="<?php the_permalink(); ?>" title="<?php the_title_attribute( array('before' => 'Permalink to: ''after' => '')); ?>"><?php the_title(); ?></a>

To:
Code:
<?php the_title(); ?>

This will remove the link from all titles, including in lists of blog posts, which means that clicking to title to continue to the full post will no longer work.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
hwkelly
Jr. Member
**
Offline Offline

Posts: 11



« Reply #2 on: May 17, 2017, 01:34:48 PM »

Thanks.  My strong suggestion is that you treat blog post and pages differently for themes targeted at the B2B customer.
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #3 on: May 18, 2017, 09:53:02 AM »

Thanks for the suggestion.  I'll add it to my list of features to put into the framework.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.