This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Israel Curtis

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 39 total)
  • Author
    Replies
  • in reply to: Jump Start 2.0 Beta #3 #21053
    Israel Curtis
    Participant

    been refreshing this forum twice a day for AGES… and you pick the one day I don’t trust anything on the internet to get my hopes up 😛

    but it’s real!

    Israel Curtis
    Participant

    So it’s my first time playing with superfish, which seems to be how you’re handling the submenus. I did find the “themeblvd_global_config” filter for removing it entirely, which I guess I could do if I wanted to build a completely new solution from scratch to handle “click” events instead of “hover” for showing the submenu — but that seems overkill (and I’d lose all your nifty formatting).

    I’ve also tried dequeueing your included superfish.min.js:

    wp_enqueue_script( 'superfish', TB_FRAMEWORK_URI . '/assets/js/superfish.min.js', array('jquery'), '1.7.4' );

    with my own later hook to ‘wp_enqueue_scripts’, where I dequeue ‘superfish’ (in an attempt to replace with a version I found that supposedly uses click instead of hover) — but in my child theme functions.php, no matter what priority I set, it never seems to dequeue 🙁

    Israel Curtis
    Participant
    in reply to: New methods for adding custom elements to Layout Builder? #20517
    Israel Curtis
    Participant

    Just one more small request — the custom builder elements are being added to the end of the dropdown list, instead of being included alphabetically. With a long list, it can be a little confusing when it seems sorted but it isn’t quite…

    in reply to: New methods for adding custom elements to Layout Builder? #20514
    Israel Curtis
    Participant

    Works great! This is an incredibly useful ability, as even with the multitude of framework hooks, it was rather clunky to insert custom content modules within the flow of a layout builder template (could only hook the start or end of a section, then match the ID to tell if it was the right place for a module). Now I can quickly drop my custom content boxes wherever I need them, and they work just like every other element. Love it.

    in reply to: New methods for adding custom elements to Layout Builder? #20501
    Israel Curtis
    Participant

    alright, no clue what I’m doing differently now, but it does seem that if I make sure to call themeblvd_add_builder_element() in a “after_setup_theme” hook, it’s not throwing an undefined error 😛 And I do have the custom element appearing in the layout builder, and I can add it to the layout. But I still can’t seem to get the element to render output when displaying the layout on a page. I’ve got a callback function, and it’s pretty much what’s in the tutorial, but no matter what I have echoed in that callback, it doesn’t appear on the page.

    add_action('after_setup_theme', 'foo');
    function foo() {
    	$options = array(
        array(
            'name'      => 'Title',
            'desc'      => 'Enter in your title.',
            'id'        => 'title',
            'type'      => 'text'
        ),
        array(
            'name'      => 'Content',
            'desc'      => 'Enter in your content.',
            'id'        => 'content',
            'type'      => 'textarea'
        )
    	);
    	$args = array(
    	    'id'		=> 'profile_box',
    	    'name'		=> 'Profile Box',
    	    'options'	=> $options,
    	    'callback'	=> 'my_profile_box'
    	);
    	themeblvd_add_builder_element($args);
    }
    
    function my_profile_box( $id, $options, $location ) {
    	echo "<h3>{$options['title']}</h3>";
    	echo "<p>{$options['content']}</p>";
            echo "here's my output!!";
    }
    in reply to: New methods for adding custom elements to Layout Builder? #20500
    Israel Curtis
    Participant

    hmmm.. when I attempted to make use of themeblvd_add_builder_element(), I couldn’t avoid getting this “undefined” error, even when calling it in a “after_setup_theme” hook. If i’m not using this in a child theme, but in a companion plugin, what’s the proper way to ensure the function exists before I call it?

    [Mon Feb 09 01:40:36 2015] [error] PHP Fatal error: Call to undefined function themeblvd_add_builder_element() in /nas/wp/www/cluster-1098/liturgical/wp-content/plugins/liturgical-config.php on line 622
    in reply to: Layout Builder element suggestion: Featured Image #20432
    Israel Curtis
    Participant

    I never suggested a post editor meta box. I’m handling the setting of the featured image myself, precisely because I do want the control over what shows on a custom post type editor screen. I’m only speaking about the new layout builder element “current featured item”. I had assumed (before i knew about beta 3) that you weren’t supporting the featured item from all post types, because it wasn’t showing.

    Israel Curtis
    Participant

    ah – that probably answers my confusion as to why it wasn’t showing up for me at all with JS2.0beta2.

    http://support.themeblvd.com/forums/topic/layout-builder-element-suggestion-featured-image/

    in reply to: Layout Builder element suggestion: Featured Image #20408
    Israel Curtis
    Participant

    actually, I just realized it’s not working for pages either (i was inserting the featured image another way). Am I missing something? Doesn’t matter what crop size I pick (even “full”), there simply is never a featured image displayed on pages or custom post types, even when the post editor clearly shows a featured image has been assigned…

    in reply to: Layout Builder element suggestion: Featured Image #20407
    Israel Curtis
    Participant

    Thanks for including the new “Current Featured Image” element!

    Of course, I’m trying to make use of these layouts outside of just pages, and this new element doesn’t seem to work for anything else, even with the Layouts to Posts plugin (and my new global post type applications). Could you include support for featured images no matter the post type?

    Israel Curtis
    Participant

    once again you squeeze out two posts in the time it takes me to respond once 😛

    I can understand your focus on pages. Just hoping that given the immense popularity of using wordpress as a more universal CMS, and the value of creating custom post types to better create and organize content (especially on the back-end), I can keep pushing for broader applications of your great framework features…

    Israel Curtis
    Participant

    Oh sweet, thx!

    Israel Curtis
    Participant

    Perfect. Pretty much exactly what I learned from scanning the Layout to Posts plugin. Though I am happy to see that I don’t have to include all the other code from themeblvd_ltp_frontend_config(). So just setting these two keys is enough:

    $config['builder'] = $template;
    	$config['builder_post_id'] = $template_id;

    Based upon this potential use scenario, I’m guessing you might want to include your example my_builder_redirect() function in the framework itself, to respond to any case in which someone sets the global config builder? Any reason you wouldn’t want this always checking by default?

    Israel Curtis
    Participant

    … and of course you answer while I’m respond to my own question 😛 Sorry it looks like I’m not listening …

Viewing 15 replies - 1 through 15 (of 39 total)