Jump to content
Danny

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

Recommended Posts

Danny    1,327
Danny

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


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mothpre    0
mothpre

I would like to know it too. Thank You

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

@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.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mothpre    0
mothpre

@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
Danny    1,327
Danny

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


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
pmmyers    0
pmmyers

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
James B    436
James B

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.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

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


×