Forum Replies Created
-
AuthorPosts
-
nunotmpMember
Great looking site. There is a widget area called
genesis-after-entry-widget-area
that needs to be supported by your theme. I am not familiar with the foodie theme so I am not sure if this is used. You can activate this area by adding this to your functions.php fileadd_theme_support( 'genesis-after-entry-widget-area' );
This will give you a widget area you can then add a text widget with the adsense javascript.
nunotmpMemberHello Gabe,
I seen this post and started looking into this and decided to create a plugin. I am still testing the plugin but you can try it out here https://github.com/nunotmp/genesis-jetpack-logo
November 14, 2014 at 11:23 am in reply to: Static Home Page Width Problem – Generate Pro Theme #131532nunotmpMemberThere are no example sites showing so I am not to sure on what you need. Can you link to the problem site?
nunotmpMemberThere is no hook that runs between the head and body tag. The two closest hooks are
genesis_meta
which runs just before the closing</head>
andgenesis_before
which runs immediately after the opening<body>
tag.
nunotmpMemberSure. One way to do this would be to create a new file called something like changes.cuss and at the bottom of your style.css file do @import(path/to/file);
nunotmpMembernunotmpMemberyou can use something like this.
add_action( 'genesis_after_header', 'wpz_do_banner' ); function wpz_do_banner() { echo '<div class="full-width-banner">; echo '<img src="path/to/image.png" alt="Banner Image" />'; echo '</div>; }
You can then add some css to expand
.full-width-banner
.full-width-banner { width: 100%; }
You may have to tweak the code but it should get you started. The php should go in your functions.php and the css goes in your style.css file.
nunotmpMembergenesis comes with a widget called Genesis featured posts. You can add that to a home widget area depending on the theme.
nunotmpMembernunotmpMembernunotmpMembernunotmpMemberI cant see the markup so cant give you the exact css but there are a few ways to approach this.
1. Make the font smaller. You can do this by editing line 854 of your style sheet.
2. Adjust the widths of the site title and/or header-widget.
nunotmpMemberHave you taken a look at this? http://codex.wordpress.org/Fun_Character_Entities
Also it may be the font not being able to create the character?
nunotmpMemberYou need to add something like below like 788 of your stylesheet.
.featured-content .entry-title a:hover { color: #fff; }
nunotmpMemberThere are a few issues.
1. The margin is not caused by the site title it is actually being caused by your header widget. Line 1306 to be exact. This adds a margin bottom to all widgets so you will need to remove this with something like
.site-header .widget { margin-bottom: 0; }
2. You can then add a min-height of 100px to your site-title on line 890 like this
.header-image .site-title a { float: left; min-height: 100px; width: 100%; }
nunotmpMemberThere are a few issues.
1. The margin is not caused by the site title it is actually being caused by your header widget. Line 1306 to be exact. This adds a margin bottom to all widgets so you will need to remove this with something like
.site-header .widget { margin-bottom: 0; }
2. You can then add a min-height of 100px to your site-title on line 890 like this
.header-image .site-title a { float: left; min-height: 100px; width: 100%; }
You will end up with this
nunotmpMemberNo, using the code @Davinder provided you will no loose the scripts functionality.
The scripts are hooked in the wp_head() and wp_footer() hooks.
nunotmpMembernunotmpMembernunotmpMemberTry this.
add_action( 'genesis_after_header', 'home_feature' ); function home_feature() { if ( is_front_page() ) { genesis_widget_area( 'home-feature', array( 'before' => '<div class="home-feature home-feature">', 'after' => '</div>', ) ); } }
There is are a couple of problems with your code.
1.add_action( ‘genesis_after_header’, ‘home-feature’ );
You need to use underscores when naming functions instead of hyphens(-).
2. When usinggenesis_widget_area
you do not need to checkis_active_sidebar()
genesis does this internally.Let me know if this works.
-
AuthorPosts