Forum Replies Created
-
AuthorPosts
-
July 20, 2014 at 9:03 pm in reply to: How to place a custom button between Home Top 1 and Middle Top 1 in Enterprise? #115129milaMember
Oh my... I actually have the Pro Plus unlimited lifetime package and have enterprise-pro.zip in my downloads directory from June 30, 2014 when I started working on this new site. I just uploaded it (again I think) in my WordPress.
I have no idea how in the world a basic enterprise theme ended up in my WordPress... Thanks for pointing it out, Tom! What a mystery and a headache. No wonder I struggle to customize it. I hope that the Pro version will be more flexible.
Thanks again!
MilaJuly 20, 2014 at 5:43 pm in reply to: How to place a custom button between Home Top 1 and Middle Top 1 in Enterprise? #115103milaMemberTom - thanks so much for your response! I was under the impression that I got Enterprise Pro child theme... A few years ago, I purchased Genesis/StudioPress Pro unlimited license. How can I tell that I'm not using the Pro child theme? Also, I made quiet a few changes to the .css and configuration/setup. Will I lose all of it if I change the theme?
Thanks again! I very much appreciate your help!!!
MilaJuly 5, 2014 at 2:06 pm in reply to: How to create a custom button and place under the Home Top 1 area in Enterprise? #113065milaMemberBrad -
Q1. if placement in functions.php has no effect on the output, then what's a point of including it in the functions.php?
Q2. I need this button in the area BETWEEN the Home Top 1 and Home Middle 1, aligned to the right side of the page. It must be outside of the content wrapper (i.e. Top Middle 1) - showing just against the background image. When I put a simple button code in the Genesis Simple Hooks - in the genesis_before_content_sidebar_wrap, it is places inside the wrap instead...Please help.
Thanks,
MilaJuly 5, 2014 at 1:44 pm in reply to: How to create a custom button and place under the Home Top 1 area in Enterprise? #113064milaMemberBrad, I assume you refer to Genesis Simple Hooks? What code do I put in the Hooks?
Thanks!
MilaJuly 4, 2014 at 8:32 pm in reply to: How to create a custom button and place under the Home Top 1 area in Enterprise? #113014milaMemberBrad - thanks for this link. I inserted the code inside the functions.php where I want it, i.e. after the Home Top 1 and before Home Middle 1. Nothing happens. I don't the button... Here's a snippet of the code from functions.php:
/** Register widget areas */
genesis_register_sidebar( array(
'id' => 'home-top-1',
'name' => __( 'Home Top #1', 'enterprise' ),
'description' => __( 'This is home top #1 section.', 'enterprise' ),
) );/*** NEW: Button Book Mila Diamond ***/
add_action( 'genesis_before_loop', 'wpsites_hook_button', 25 );
function wpsites_hook_button() {
if ( is_front_page() ) {
echo'<div class="custom-button">';
echo'Book Mila Diamond';
echo'</div>';
}
}
/*** END OF NEW: Button Book Mila Diamond ***/genesis_register_sidebar( array(
'id' => 'home-middle-1',
'name' => __( 'Home Middle #1', 'enterprise' ),
'description' => __( 'This is home middle #1 section.', 'enterprise' ),
) );Thanks! Mila
July 3, 2014 at 8:21 pm in reply to: How to create a custom button and place under the Home Top 1 area in Enterprise? #112916milaMemberBrad - i tried #3 but no matter how I configure it, it places a widget at the top left corner, overexposing it on top of my image. It probably inherits some properties from somewhere... I don't know how/where to change it.
for #2 Hook it from functions.php: the code examples for a standard button are in HTML. How do I imbed it in the functions.php? What is the exact syntax?
Thanks!!!
Mila -
AuthorPosts