Forum Replies Created
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
jfortenberryMember
Thank you for sharing, Tom. That looks like a better approach.
jfortenberryMemberOkay, I figured this out. Here's the code that I used for future reference.
// * Add Bootstrap custom styles to form; need to add the parameter for is_page(page), replacing "page" with the slug for the page where the stylesheet should appear function bootstrap_custom_style_sheets() { if (is_page(page) ) { wp_enqueue_style( 'bootstrap-custom', home_url('/form/assets/css/custom.css')); wp_enqueue_style( 'bootstrap-min', home_url('/form/assets/bs/css/bootstrap.min.css')); wp_enqueue_style( 'bootstrap-theme', home_url('/form/assets/bs/css/bootstrap-theme.min.css')); wp_enqueue_style( 'font-awesome', home_url('/form/assets/fa/css/font-awesome.css')); }} add_action('wp_enqueue_scripts', 'bootstrap_custom_style_sheets');
There may be a better way, but this worked for me.
jfortenberryMemberChange "sidbar" to "sidebar" in the code that SoZo gave us.
jfortenberryMemberThanks for the prompt response SoZo. That does work. I'm a little finicky, though, and don't really like using CSS to hide page elements. It seems a bit clunky. I'm also a little concerned about the SEO effect as that could be a bunch of hidden links. Is there a way to actually stop WordPress/Genesis from inserting the sidebar on the homepage?
Thanks again.
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)