Digital experiences for all disciplines
Forum Replies Created
-
Posted in: We hit Power Elite.
-
Cool, thanks!
Thanks David for the comment. It would make sense to either fix the typo in the function name
spb_regsiter_assets()
, or to rename it to something different, to not confuse developers. I mean, to// OVERWRITE PAGE BUILDER ASSETS
would require to fix the typo, for adding a new element the function name can be whatever.Also, it might be a great idea to include some example of basic widget in the child theme (or at least in developers documentation), to make things a little bit easier for the developers.
Last but not least, the documentation for page builder assets is out of date – the
spb_register_assets()
function loads the shortcodes automatically from the folder, instead of including them one by one..:) A fix for that would also be cool…OK, it was easy in fact:
Create
shortcodes
directory in you child theme, copy some shortcode file fromswift-framework/page-builder/builder/shortcodes
(I took the icon-boxes.php),rename it to something like ‘my-new-shortcode.php’ and copy into your shortcodes folder. Replace all instances ofspb_icon_box
withmy_prefix_my_new_shortcode
.Than just include that file:
function my_prefix_register_assets() { require_once( 'shortcodes/my-new-shortcode.php' ); } if (is_admin()) { add_action('admin_init', 'my_prefix_register_assets()', 2); } if (!is_admin()) { add_action('wp', 'my_prefix_register_assets()', 2); }
Come on guys, what makes a great theme is a great support, and this has to be easily doable – in child theme functions.php there’s even
// OVERWRITE PAGE BUILDER ASSETS // function spb_regsiter_assets() { // require_once( get_stylesheet_directory_uri() . '/default.php' ); // } // if (is_admin()) { // add_action('admin_init', 'spb_regsiter_assets', 2); // } // if (!is_admin()) { // add_action('wp', 'spb_regsiter_assets', 2); // }
so it’s just the matter of telling us how tu use this function…
Hi,
thanks for reply. My form is a pretty complex one, with lots of stuff from DB, Ajax etc., so pasting it into text field is NOT an option for sure. I added the new widget by copying one of the shortcodes from swift-framework/page-builder/builder/shortcodes . I need to know how to include the new shortcode from my child theme, to stay upgrade safe.Thanks
VasikHmm, that doesn’t work neither…
June 25, 2014 at 2:14 pm in reply to: Fatal error: Call to undefined function sf_woocommerce_activated() #85793Ok, I found the problem – I had redirected wp-activate.php to wp-activate-custom.php in my .htaccess
RewriteRule ^wp-activate.php(.*)$ wp-activate-custom.php$1
as soon as I remove this, it works again. So, while this is not theme issue, you still might be able to help me on this one – maybe you know a way how to make this work? Basically, I did some changes to the activation page, and would like to make the changes update-safe – that’s why I created the custom file..
Any idea?
Sorry about the troubles.Vasik
June 25, 2014 at 1:54 pm in reply to: Fatal error: Call to undefined function sf_woocommerce_activated() #85765Hmmm, this is not of much help – as I said, the theme files are loaded correctly on all pages, except of the wp-activate.php, so I really have no idea what should I say to the host..
June 25, 2014 at 11:38 am in reply to: Fatal error: Call to undefined function sf_woocommerce_activated() #85651This reply has been marked as private.June 25, 2014 at 10:22 am in reply to: Fatal error: Call to undefined function sf_woocommerce_activated() #85582Hi Rui,
no, this was just WordPress multisite setting, I switched it to 1000MB. Lots of free space on my FTP.Would giving you FTP access help?
Thanks
June 25, 2014 at 6:18 am in reply to: Fatal error: Call to undefined function sf_woocommerce_activated() #85485Uploading the files to FTP, activating the theme.
June 24, 2014 at 10:17 pm in reply to: Fatal error: Call to undefined function sf_woocommerce_activated() #85399This reply has been marked as private.June 24, 2014 at 3:57 pm in reply to: Fatal error: Call to undefined function sf_woocommerce_activated() #85292I updated to latest Dante (2.6.1), now I’m getting:
Fatal error: Call to undefined function sf_get_post_meta() in /home/www/domain.com/www/wp-content/themes/dante/header.php on line 82
As I said, the theme works fine otherwise, I get this problem only on the /wp-activate.php
June 24, 2014 at 3:14 pm in reply to: Fatal error: Call to undefined function sf_woocommerce_activated() #85267Hi Mohammad, I have Dante acivated, it works fine, but as soon as I go to http://domain.com/wp-activate.php, I get this error.
Fatal error: Call to undefined function sf_woocommerce_activated() in /home/www/domain.com/www/wp-content/themes/dante/header.php on line 214
No, I don’t use any plugin to change that page, at least as far as I know. Anyway, I need the wp-signup.php, to allow visitors create their own blog on WP Multisite.
Thanks for help
-
Posted in: We hit Power Elite.