Forum Replies Created
-
AuthorPosts
-
September 11, 2013 at 3:58 pm in reply to: Best way to add a call to action banner to a page ? #62016nunotmpMember
You can do what I said above and just change the hook to something like
add_action( 'genesis_entry_footer ', 'wpz_call_to_action' );
This will place the widget at the end of every post.
September 10, 2013 at 10:03 pm in reply to: Best way to add a call to action banner to a page ? #61832nunotmpMemberThe way I would do this is first create a new sidebar with the function
genesis_register_sidebar()
then add an action like soadd_action( 'genesis_before_content', 'wpz_call_to_action' ); function wpz_call_to_action() { if ( is_active_sidebar( 'cta' ) ) { genesis_widget_area( 'cta', array( 'before' => '<div class="cta-wrap">'; 'after' => '<div>'; ) ) } }
You can then use a text widget in the new sidebar you created.
nunotmpMemberYou can upload it but WordPress will prompt you to crop the header. You can give it a shot and see if it looks right to you. If not, just remove it and have the designer or someone else to re-size it for you.
nunotmpMemberMake sure under Geneis>Theme Settings that you have image logo selected as your header. Right now you have dynamic text.
September 8, 2013 at 10:14 pm in reply to: Only Show Featured Images for Posts with Set Featured Images #61448nunotmpMemberAssuming you are using genesis 2.0+ You can first remove it with
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
Then we register it with like so
if ( has_post_thumbnail() ) { add_action( 'genesis_entry_content', 'genesis_do_post_image', 8 ); }
This will call the
genesis_do_image()
function only if the post has a thumbnail.
nunotmpMemberThe top space is caused by the class
.site-tagline
having a top margin ofmargin-top: 60px; margin-top: 6rem;
. You need to edit your style.css under line 494 and remove the top margin.
nunotmpMemberIf you are using html5 the hooks have changed. You will need to use
remove_action( 'genesis_entry_header' , 'genesis_do_post_image', 8 );
and then reapply with a lower lower/higher priority. Something likeadd_action( 'genesis_entry_header', 'genesis_do_post_image', 5 );
If you are using xhtml then you will need to do this.
remove_action( 'genesis_post_content', 'genesis_do_post_image' );
add_action( 'genesis_before_post_title', 'genesis_do_post_image' );
Now you can place this in your home.php file or adding a conditional statement in your functions.php file. like so
if ( is_home() ) { // add actions here }
September 8, 2013 at 5:12 pm in reply to: Metro Pro – home page widget – featured image sizes #61413nunotmpMemberThe images sizes should be in the functions.php file. They will be called using the
add_image_size();
function. It may look something like this in your functions .php fileadd_image_size( 'home-top', 700, 400, true );
nunotmpMembernunotmpMemberYour site looks great! The only thing I am not a fan of is the a tags in your footer. Good job.
August 13, 2013 at 9:00 pm in reply to: Remove Primary Side Bar from Home Page of METRO Theme #56226nunotmpMemberTry adding this to your functions.php file:
if ( is_home() ) { remove_action( 'genesis_sidebar', 'genesis_do_sidebar' ); }
July 25, 2013 at 7:57 am in reply to: Move secondary nav to show under slider – Executive theme #52440nunotmpMemberIf you are unfamiliar with the functions.php file I would advise not to do it. If you were to accidentally leave out something like a semicolon then your site would break. The code should go at the bottom of your functions.php if you would like to try it out and have ftp access.
July 24, 2013 at 10:22 pm in reply to: Move secondary nav to show under slider – Executive theme #52408nunotmpMemberI am not sure if you are comfortable using the functions.php file but something like this should work
remove_action( 'genesis_after_header', 'genesis_do_subnav' ); add_action( 'genesis_before_content', 'genesis_do_subnav' );
nunotmpMemberMy guess is you are adding the widget
genesis_before_content
? This places the widget within the #inner div. This div has a width of 900px so to match the nav width you might need to usegenesis_after_header
this will place the widget area in the same position but outside of the #inner div.
nunotmpMemberYou can use hooks. Somthing like this: `
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
add_action('genesis_entry_header', 'genesis_post_meta' )`
That is using genesis 2.0 but if you are using an earlier version try this`
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
add_action('genesis_before_post_content', 'genesis_post_meta' )
`
nunotmpMemberIt looks pretty good. The form looks a bit thrown together but a few tweaks should fix that up.
-
AuthorPosts