Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #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
    Colin

    #427496

    Hey 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ünter

    #427510

    Hi 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
    Colin

    #427518

    Hi 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
    Colin

    #427560

    Hey!

    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ünter

    #427584
    This reply has been marked as private.
    #428149

    Hey!

    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,
    Ismael

    #428214

    Hi 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
    Colin

    #428303

    Hi!
    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ünter

    #428318
    This reply has been marked as private.
    #428357

    Hey!

    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ünter

    #428963

    Hi Günter

    Thanks very much, that is excellent. Just what I required

    Much appeciated.
    Regards
    Colin

    #429370

    Hey!

    Great, glad we could help.

    Regards,
    Rikard

    #764754

    Thanks for this very helpful support, perfekt description! You’re the best :)

    #765214

    Hi @baiker,

    Glad you found the thread useful and thanks for the kind words :-)

    Best regards,
    Rikard

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.