• 0
Sign in to follow this  
Followers 0

Customise Features title to make it a link to post/page ?

Question

Posted · Report post

Hi, I am trying to customise the feature slider and I want to set it so that instead of having to click the more button, users can simply click on the titie of the feature and Im not talking about the option in feature settings. So would I go about doing this ? Thanks Danny

Share this post


Link to post
Share on other sites

7 answers to this question

  • 0

Posted · Report post

I would like to know it too. Thank You

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

@Mothpre, I got it working for me and here's how I did it. Open up sections.features.php, find this line:

<?php the_title(); ?>

Replace it with:

<?php the_title(); ?>

As you can see, I have added a class to the link, you can rename this whatever you want and apply your own styling.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks Danny ;)

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

@dannyh but it generates somes errors after it: b Warning: Cannot modify header information - headers already sent by (output started at /home/holistic/public_html/journal_es/wp-content/themes/platformpro/sections/features/section.features.php:1) in /home/holistic/public_html/journal_es/wp-includes/pluggable.php on line 897

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

hmm.... Well it works for Mothpre, I've linked my sections.features.php, you can view it here. http://pastebin.com/4TsRuuPt

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi Danny

 

mothpre, I got it working for me and here's how I did it. Open up sections.features.php, find this line:

Replace it with: As you can see, I have added a class to the link, you can rename this whatever you want and apply your own styling.

 

Hi Danny,  I am also wanting my headlines to link to different parts of my website and cannot seem to figure it out in the features set up.  To follow your instructions, do I open up the sections.features.php through the customization plugin and just paste your code in?  And, once I do this, do I do it for each page I have a features section or will this function be enabled across my site? Thanks!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi there,

 

Any changes you make to the functions.php will be site wide. To do Danny's method above it looks like you'll need to copy the entire features section and place it into your child theme as a new setion. Then in that new child folder replace the code in the sections.features.php with the code Danny linked above.

 

However, this post is two years old now, so there could have been some changes in the code in that section since then.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0