-
AuthorPosts
-
April 12, 2015 at 9:20 am #427116
Hi
I would like to remove the links which are on the titles of the Ajax portfolio, as I dont want them to link to a blank page.
Please could you advise
Many Thanks
Regards
ColinApril 13, 2015 at 2:20 pm #427496Hey waveseven!
Thank you for coming back.
You need to modify a core file:
enfold\config-templatebuilder\avia-shortcodes\portfolio.php line 720:Look for:
$output .= "<h2 class='portfolio-preview-title entry-title' $markup><a href='{$link}'>".$entry->post_title."</a></h2>";
and replace with:
$output .= "<h2 class='portfolio-preview-title entry-title' $markup>".$entry->post_title."</h2>";
Remember to do this after every update.
Regards,
GünterApril 13, 2015 at 2:57 pm #427510Hi Günter
Thanks for your reply. Can it be done in the child theme or does it have to be in the core file?
Regards
ColinApril 13, 2015 at 3:20 pm #427518Hi Günter
I replaced the code above, but nothing seemed to change? The link was still on the title. I cleared the cache etc but the link is still there. I tried it on another PC and the link is still there?
Regards
ColinApril 13, 2015 at 4:18 pm #427560Hey!
Thank you for coming back.
Using a child theme you can copy the file above to the childtheme directory. Follow http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
On my installation the code above works.
Can you create us a temporary admin account please? Then we can check your code and help you. You can post it here as a private reply.
Cheers!
GünterApril 13, 2015 at 4:35 pm #427584This reply has been marked as private.April 14, 2015 at 12:04 pm #428149Hey!
The login credentials are not working. Please check it. Follow the instructions provided in the link provided above. Add this to the functions.php file:
add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); function avia_include_shortcode_template($paths) { $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; }
Create a folder called shortcodes then place the portfolio.php file inside. Modify it.
Best regards,
IsmaelApril 14, 2015 at 2:01 pm #428214Hi Ismael
That sort of worked except it has made all of the heading text and all the description text on the portfolio page, a link and changed the color. I’ve left it like it so you can have a look.
Many Thanks
Regards
ColinApril 14, 2015 at 4:21 pm #428303Hi!
Thank you for your feedback.The login credentials still are not working. Please check it again.
And kindly provide us a link to the Ajax portfolio page also – Just to make sure we are talking about the same.
Cheers!
GünterApril 14, 2015 at 4:28 pm #428318This reply has been marked as private.April 14, 2015 at 5:29 pm #428357Hey!
Thank you for coming back.
I found a solution – Added an empty link before the headline:
$output .= "<h2 class='portfolio-preview-title entry-title' $markup><a href='{$link}'></a></h2>"; $output .= "<h2 class='portfolio-preview-title entry-title' $markup>".$entry->post_title."</h2>";
I hope, it will work now.
Cheers!
GünterApril 15, 2015 at 3:04 pm #428963Hi Günter
Thanks very much, that is excellent. Just what I required
Much appeciated.
Regards
ColinApril 16, 2015 at 7:44 am #429370March 22, 2017 at 1:16 pm #764754Thanks for this very helpful support, perfekt description! You’re the best :)
March 23, 2017 at 7:48 am #765214 -
AuthorPosts
- You must be logged in to reply to this topic.