Forum Replies Created
-
AuthorReplies
-
Israel Curtis
Participantbeen 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!
March 13, 2015 at 8:00 pm in reply to: change mega menu dropdown behavior to "click" instead of "hover"? #20854Israel Curtis
ParticipantSo 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 🙁
March 13, 2015 at 7:56 am in reply to: change mega menu dropdown behavior to "click" instead of "hover"? #20848Israel Curtis
Participantwork-in-progress 😉
February 11, 2015 at 2:05 am in reply to: New methods for adding custom elements to Layout Builder? #20517Israel Curtis
ParticipantJust 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…
February 11, 2015 at 1:56 am in reply to: New methods for adding custom elements to Layout Builder? #20514Israel Curtis
ParticipantWorks 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.
February 10, 2015 at 2:52 am in reply to: New methods for adding custom elements to Layout Builder? #20501Israel Curtis
Participantalright, 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!!"; }
February 10, 2015 at 12:00 am in reply to: New methods for adding custom elements to Layout Builder? #20500Israel Curtis
Participanthmmm.. 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
Israel Curtis
ParticipantI 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.
February 2, 2015 at 1:27 am in reply to: Feature Request: Add featured image element to layout builder #20409Israel Curtis
Participantah – 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/
Israel Curtis
Participantactually, 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…
Israel Curtis
ParticipantThanks 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?
February 1, 2015 at 11:30 pm in reply to: How to utilize custom layouts (from the builder) globally for custom post types? #20404Israel Curtis
Participantonce 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…
February 1, 2015 at 11:27 pm in reply to: Post Grid or List when query returns pages, displays "0" for excerpts #20403Israel Curtis
ParticipantOh sweet, thx!
February 1, 2015 at 11:07 pm in reply to: How to utilize custom layouts (from the builder) globally for custom post types? #20400Israel Curtis
ParticipantPerfect. 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?
February 1, 2015 at 11:00 pm in reply to: How to utilize custom layouts (from the builder) globally for custom post types? #20397Israel Curtis
Participant… and of course you answer while I’m respond to my own question 😛 Sorry it looks like I’m not listening …
-
AuthorReplies