Forum Replies Created
-
AuthorPosts
-
larsvanzantenMember
Didn't think of that yet. Fixed it immediately. Thanks a lot, again!
larsvanzantenMemberYeah! Adding background-color: transparant to the .header-image #title element did the trick. Thanks a lot, love Genesis AND the community!
larsvanzantenMemberUnfortunately, that doesn't work. When I remove that line a pink bar appears on the header, like this:
<a href='http://postimage.org/' target='_blank'><img src='http://s11.postimg.org/mxjbuiv3n/Schermafbeelding_2013_03_26_om_08_07_44.png' border='0' alt="Schermafbeelding 2013 03 26 om 08 07 44" /></a><br /><a target='_blank' href='http://postimage.org/'>free picture hosting</a><br /><br />
FYI: In the Appearance --> Header settings, the "Show header text with your image."-option is not on.
larsvanzantenMemberThank you!
larsvanzantenMemberHmm... <code> tags not working... Still, hope you can help me 🙂
larsvanzantenMemberWell, I added the "landing page" like function using these instructions: http://www.briangardner.com/welcome-text-widget/. I added the anchor link using the Genesis Simple Hooks plugin. I added this to the genesis_header hook: <code><div id="welcome-text-anchor"><a href="#welcome-text-anchor"></a></div></code>.
Next to that, I added this to the functions.php:
<code>
if ( ! isset( $content_width ) ) $content_width = 708;
/************************* Welcome text *************************/
/** Register widget areas */
genesis_register_sidebar( array(
'id' => 'welcome-text',
'name' => __( 'Welcome Text', 'genesis' ),
'description' => __( 'This is the welcome text widget.', 'themename' ),
) );/** Add the welcome text section */
add_action( 'genesis_before', 'custom_welcome_text' );
function custom_welcome_text() {
if ( is_home() )
genesis_widget_area( 'welcome-text', array(
'before' => '<div class="welcome-text widget-area">',
) );
}
/** Custom Read More link for Genesis Post Excerpts */
function custom_read_more_link() {
return ' <a href="' .get_permalink() .'" rel="nofollow">Lees verder...</a>';
}
add_filter( 'excerpt_more', 'custom_read_more_link' );
add_filter( 'get_the_content_more_link', 'custom_read_more_link' );
add_filter( 'the_content_more_link', 'custom_read_more_link' );
// Change height custom header
add_theme_support( 'genesis-custom-header', array(
'flex-height' => true,
'height' => 380,
'width' => 1080
) );
/** Remove the site title */
remove_action( 'genesis_site_title', 'genesis_seo_site_title' );</code>And this to the style.css:
<code>
/* Verberg footer */
#footer {
display: none;
}
/* Padding onder widgets homepagina */
.widget-area .textwidget {
padding-bottom: 2rem;
}
/* H1 kleiner maken */
h1,
.entry-title,
.entry-title a {
font-size: 32px;
font-size: 2rem;
}
/* Welcome Text (de big bold header)
------------------------------------------------------------ *//* Fullscreen */
body, html {
height: 100%;
}.welcome-text {
height: 100%;
overflow: hidden;
}.welcome-text p {
font-size: inherit;
margin: 0;
}/* Verticaal en horizontaal centreren */
#welcome-text-content {
position:absolute;
top: 50%;
left: 50%;
height:384px;
width: 768px;
margin-top:-192px;
margin-left: -384px;
}/* Niet zichtbaar maken bij 768px en minder */
@media only screen and (max-width: 768px) {
.welcome-text {
display: none;
}}
/* Fade-effect voor logo's in footer */
.fade-effect {
-webkit-opacity: 0.8;
-moz-opacity: 0.8;
opacity: 0.8;
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-ms-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}.fade-effect:hover {
-webkit-opacity: 1;
-moz-opacity: 1;
opacity: 1;
}
/* Hoogte header aanpassen */
#header {
min-height: 380px;
overflow: hidden;
}</code>Hope you can help me out here!
larsvanzantenMemberBTW: the site is live now: http://www.fmusic.nl. Happy to see your comments on it!
larsvanzantenMemberThanks for your comments! The welcome-text did the trick. Right now I'm linking in to an anchor-link which I put in the genesis_header Hook using the Simple Hooks plugin. I tried a few things to add a nice scroll effect but it didn't work out yet...
-
AuthorPosts