• The plug-in is conflicting with my theme’s short codes but basically the one_half, since the theme has also one with the same name. I did try this code in the functions.php I’ve found in the FAQ section but it didn’t work so I need to stop my theme’s short codes to work or this pug-in to take fully control over the short codes of the theme

    add_filter( ‘cpsh_prefix’, ‘set_shortcode_prefix’ );
    function set_shortcode_prefix() {
    return ‘myprefix_’; // edit this part if needed
    }

    What else should I do? or What should I add to that code?

    The website URL is arleneangarddesigns.com

    I will really appreciate your help. Thanks so much in advance.

    • This topic was modified 7 years, 12 months ago by clausergphoto.
Viewing 3 replies - 1 through 3 (of 3 total)
  • to use the shortcode filter, you now need to edit any usage of the existing shortcodes and add the prefix.

    So, for example:

    [one_half]Your content[/one_half] becomes [myprefix_one_half]Your content[/myprefix_one_half]

    ‘myprefix’ can be any term, and prob should not be what is in the example.

    Once you make the change in functions.php, the shortcodes button in the editor will output the new shortcodes with prefixes.

    Thread Starter clausergphoto

    (@clausergphoto)

    Thanks a lot… I tried and it did change the prefix for the new shortcodes and I did change the ones in one of the pages as a test and still didn’t work… Should I replace all the shortcakes I’ve user in the website so that this will work? Does it matter where within the functions.php file the code is placed? I think I did it right cause now the shortcake button inserts the shortcakes with the prefix but the problem still remains with the one_half and one_third shortcakes which are also included in the theme features

    • This reply was modified 7 years, 11 months ago by clausergphoto.

    The existing ones without prefix will not work until they are updated. If you have very many, you can perform a Search and Replace on the Database. Use that with extreme care and heed the warnings about having a working backup prior to working on your DB.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Interference with Theme’s Short Codes’ is closed to new replies.