Forum Replies Created
-
AuthorPosts
-
Dave Navarro, Jr.
MemberFound it!!
remove_action( 'genesis_header', 'genesis_do_header' );
Dave Navarro, Jr. ~ Lead Web Developer ~ Topeka & Shawnee County Public Library
http://tscpl.orgDave Navarro, Jr.
MemberReally? Wow. Thanks!
Dave Navarro, Jr. ~ Lead Web Developer ~ Topeka & Shawnee County Public Library
http://tscpl.orgDave Navarro, Jr.
MemberTo answer my own question... "genesis_meta" works to allow ACF forms on the front end of a genesis template.
Dave Navarro, Jr. ~ Lead Web Developer ~ Topeka & Shawnee County Public Library
http://tscpl.orgDave Navarro, Jr.
MemberI should have been more specific...
I need to render a form from Advanced Custom Fields. To do so, I have to call the
acf_form_head()
function before theget_header()
function is called by the theme template page.
Dave Navarro, Jr. ~ Lead Web Developer ~ Topeka & Shawnee County Public Library
http://tscpl.orgDave Navarro, Jr.
MemberBizarrely... The issue was load order...
I added a "add_action" wrapper
add_action( 'init', function () { if ( function_exists('genesis_unregister_layout') ) { genesis_unregister_layout( 'sidebar-content' ); genesis_unregister_layout( 'content-sidebar-sidebar' ); genesis_unregister_layout( 'sidebar-sidebar-content' ); genesis_unregister_layout( 'sidebar-content-sidebar' ); } } );
And that fixed it. It's definitely something to do with DWB and load order.
Dave Navarro, Jr. ~ Lead Web Developer ~ Topeka & Shawnee County Public Library
http://tscpl.orgDave Navarro, Jr.
MemberOkay, I put it into it's own stand-alone plugin and it's still not working. I'll download the sample child theme and try it with that.
The odd thing is that all of my other Genesis related code works... Just not this one function.
Dave Navarro, Jr. ~ Lead Web Developer ~ Topeka & Shawnee County Public Library
http://tscpl.orgDave Navarro, Jr.
MemberJust downloaded and installed the latest release and still no go.
Dave Navarro, Jr. ~ Lead Web Developer ~ Topeka & Shawnee County Public Library
http://tscpl.orgDave Navarro, Jr.
MemberThis is what I have right now:
// Unregister sidebar/content layout setting if ( function_exists('genesis_unregister_layout') ) { genesis_unregister_layout( 'sidebar-content' ); genesis_unregister_layout( 'content-sidebar-sidebar' ); genesis_unregister_layout( 'sidebar-sidebar-content' ); genesis_unregister_layout( 'sidebar-content-sidebar' ); }
The function genesis_unregister_layout() does not exist at the time this code runs in my functions.php
I know that the code in functions.php is running because I have other test code that does execute.
At the suggestion of StudioPress support, I am re-installing the latest release of Genesis.
Dave Navarro, Jr. ~ Lead Web Developer ~ Topeka & Shawnee County Public Library
http://tscpl.orgJune 22, 2015 at 7:06 pm in reply to: How can I remove unwated sections from the wordpress admin in the user profiles #157248Dave Navarro, Jr.
MemberThe code at that link does not allow you to remove those options from User profiles. Is there a way to remove those options from user profiles?
Dave Navarro, Jr. ~ Lead Web Developer ~ Topeka & Shawnee County Public Library
http://tscpl.orgDave Navarro, Jr.
MemberIs there a free child theme for Genesis? I want to switch to a generic child theme in cases like this to see if DWB is causing problems like this.
What's weird is that the code for remove the title itself and modifying the title both work, it's only the SEO description that's not working.
Dave Navarro, Jr. ~ Lead Web Developer ~ Topeka & Shawnee County Public Library
http://tscpl.orgDave Navarro, Jr.
MemberNo, it's a Genesis issue. When you go to any page or post, you can select an alternate layout from the Genesis tools.
I know that in order to add additional layouts, I need to add some code to register the new layout. I just don't know if I need to provide an image of the layout for the Genesis menu, or it generates it on its own based on the layout options when I register the new layout.
Dave Navarro, Jr. ~ Lead Web Developer ~ Topeka & Shawnee County Public Library
http://tscpl.orgDave Navarro, Jr.
MemberI wasn't able to find a plugin for that, so I just ended up coding it myself.
It was suggested to me that I switch to a theme/child-theme that had some kind of widget for that, but I wanted to keep the theme I was using.
However, I was looking at the free "Simple Hooks" plugin for Genesis and I think you could do something there.
Dave Navarro, Jr. ~ Lead Web Developer ~ Topeka & Shawnee County Public Library
http://tscpl.org -
AuthorPosts