Forum Replies Created

Viewing 15 posts - 1 through 15 (of 18 total)
  • in reply to: Add new widget to the Builder #211553
    vasikgreif
    Member
    Post count: 21

    Cool, thanks!

    in reply to: Add new widget to the Builder #211089
    vasikgreif
    Member
    Post count: 21

    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…

    in reply to: Add new widget to the Builder #210485
    vasikgreif
    Member
    Post count: 21

    OK, it was easy in fact:

    Create shortcodes directory in you child theme, copy some shortcode file from swift-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 of spb_icon_box with my_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);
    	}
    
    in reply to: Add new widget to the Builder #210362
    vasikgreif
    Member
    Post count: 21

    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…

    in reply to: Add new widget to the Builder #210028
    vasikgreif
    Member
    Post count: 21

    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
    Vasik

    in reply to: Add login / logout link to the mobile menu #138208
    vasikgreif
    Member
    Post count: 21

    Hmm, that doesn’t work neither…

    vasikgreif
    Member
    Post count: 21

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

    vasikgreif
    Member
    Post count: 21

    Hmmm, 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..

    vasikgreif
    Member
    Post count: 21
    This reply has been marked as private.
    vasikgreif
    Member
    Post count: 21

    Hi 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

    vasikgreif
    Member
    Post count: 21

    Uploading the files to FTP, activating the theme.

    vasikgreif
    Member
    Post count: 21
    This reply has been marked as private.
    vasikgreif
    Member
    Post count: 21

    I 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

    vasikgreif
    Member
    Post count: 21

    Hi 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

    in reply to: domain.com/wp-signup.php – set custom slider #74323
    vasikgreif
    Member
    Post count: 21

    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

Viewing 15 posts - 1 through 15 (of 18 total)