Your Time:
Our Time:
← Back to discussions

Portfolio shortcode broken

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 3 replies, 2 voices, and was last updated 11 years ago by formesante.

  • 2015-09-26 at 10:14 am
    Support Expired
    #9861
    formesante
    Participant
    • Topics: 1
    • Replies: 2
    • Total posts: 3
    • Post count: 4

    [portfolio columns=”4″ cat=”anti-age,anti-rides,cremes-visage,exfoliant,serums,soin-du-buste,soin-du-corps” title=”false” limit=”16″ pagination=”false” sidebar=”false” sortable=”true”]

    Fatal error: Cannot redeclare protoenqueue_scripts() (previously declared in /wp-content/themes/concept/framework/shortcode/portfolio.php:76) in /wp-content/themes/concept/framework/shortcode/portfolio.php on line 73

    2015-09-28 at 10:55 am
    #9865
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Hi formesante,

    Find the following path,

    /wp-content/themes/concept/framework/shortcode/portfolio.php

    add_action( ‘wp_footer’,’protoenqueue_scripts’); // comment this line

    Regards,
    krishnaveni

    2015-10-01 at 5:23 am
    Support Expired
    #9907
    formesante
    Participant
    • Topics: 1
    • Replies: 2
    • Total posts: 3
    • Post count: 4

    This does not help:

    
    Fatal error: Cannot redeclare protoenqueue_scripts() (previously declared in /Users/alex/Sites/biosmosecom.dev/public/wp-content/themes/concept/framework/shortcode/portfolio.php:76) in /Users/alex/Sites/biosmosecom.dev/public/wp-content/themes/concept/framework/shortcode/portfolio.php on line 73
    

    I fixed that problem doing so:

    
    		//function protoenqueue_scripts()
    		//{
    
    			wp_enqueue_script('atp-Modernizr', THEME_JS .'/Modernizr.js', 'jquery','','in_footer');
    		//}
    		//add_action( 'wp_footer','protoenqueue_scripts');
    

    However now I see this after refreshing a page with portfolio shortcode (in attach).

    • This reply was modified 11 years ago by formesante.
    2015-10-01 at 5:29 am
    Support Expired
    #9910
    formesante
    Participant
    • Topics: 1
    • Replies: 2
    • Total posts: 3
    • Post count: 4

    seems line 82 causes the problem:
    wp_print_scripts('atp-isotope');

    when I comment it out, portfolio starts to work

    I find it very pity that so many problems were introduced in just one part of the template.

You must be logged in to reply to this topic.