Skip to content
Public Ticket #1808

Nofollow links in mega-menu

Conversation thread

Veronique replied

Customer Reply

Hi, 

Thank you for your clear, fast and very patient replies, it's working now :-)

All the best,

Veronique

PenciDesign replied

Staff Reply

Hi,

You're doing wrong. You can open penci-render.php file and copy the codes from line 8:

\
if ( ! function_exists( 'penci_return_html_mega_menu' ) ) {

to the end of this file.

After that, paste it to functions.php files on your child theme and modified it.

Best Regards,

PenciDesign

Veronique replied

Customer Reply

Thank you very much!

I am using the child theme, so I copied the penci-render.php from the parent theme, to modify it within the child theme, but it doesn't seem to work. Is there something I am not doing properly? I am supposed to add something in the stylesheet as well?

Enclosed the screenshots.

Thanks!

Veronique

PenciDesign replied

Staff Reply

Hi,

You can do that by add more this code:

\
rel="nofollow"

like on this image

Best Regards,

PenciDesign

Veronique started the conversation

Conversation Start

Hi,

I am working on SEO for my blog, and I noticed that my articles in my mega-menu appear as "do-follow"... So it means that they appear as do-follow links on all my pages. How could I make them nofollow so that they don't impact my site architecture? I am ready to add some code in a child theme, but I am not a professional developper.

I hope my question is clear enough...

Thanks!

Veronique

Want to join this conversation or access attachments? Sign in first.