Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #1320688

    i created an extraction of various subcategories as a list as you can see here
    And if you select one of the single categories the extraction is correctly filtered.
    I would like to have also the relative permalink so when i hit ORTAGGI Q&A the link would appear such as

    Is that possible? If yes how?
    Thank you in advance


    Hey SurigliaStudio,

    Thank you for the inquiry.

    This is possible, but you have to modify the enfold/config-templatebuilder/avia-shortcodes/magazine/magazine.js file. Look for this code around line 26.


    And below, add this code.

    window.location.hash = decodeURI(current[0].outerText).toLowerCase();

    Please toggle or temporarily disable the Enfold > Performance > File Compression settings after doing the modification.

    Best regards,


    Hello Ismael,
    can I put the modified file in the child folder or it has to be in the enfold one?


    Hello again. I tried to put it in the child folder and doesn’t work.
    In the original folder it works but there is a little issue

    As you can see here if you click on the filters you see the # filled with %20 instead of spaces. I need to have a talking url, like this

    Plus if i just copy the genereted url once i clicked on a filter es.

    and paste in a new window the filter is not triggered as should be. So I find myself in the regular page with a strange url.
    Any hint?
    Thank you in advance.



    Unfortunately, you will not be able to override this in the child theme without editing the shortcode file directly. You have to add the following snippet in the functions.php file to create a new shortcode path in the child theme, copy the magazine.php file and modify the script path in the extra_assets function.


    To convert the %20 characters to a hyphen, try to replace the previous code using the following snippet.

    window.location.hash = decodeURI(current[0].outerText).toLowerCase().replace("%20", "-");

    Best regards,


    Hello Ismael,
    I tried what you said but i have some difficulty.

    After i added the new “shortcodes” folder into my child theme and added the function in the child theme should I recreate the path of the magazine folder completely?

    ex. mytheme/config-templatebuilder/avia-shortcodes/magazine/

    and put in this folder both, the php and the js files?
    After this on the php i should change the path line on the php for the js like this?
    wp_enqueue_script( ‘avia-module-magazine’, AviaBuilder::$path[‘pluginUrlRoot’] . ‘shortcodes/config-templatebuilder/avia-shortcodes/magazine/magazine.js’, array( ‘avia-shortcodes’ ), false, true );

    What am I missing?



    Thank you for the update.

    You have to place the magazine/magazine.php file inside the shortcodes folder within the child theme directory. That is the new avia-shortcodes folder. So the new folder structure would be yourchildtheme/shortcodes/magazine/*(magazine shortcode files including php, js etc). And yes, you have to adjust the script path in the wp_enqueue_script function.

    Best regards,

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.