Tagged: enfold, excerpt, page, title, transparent header
-
AuthorPosts
-
September 23, 2018 at 3:29 pm #1013331
Hi there
I’m building a site and implementing pages that use ‘Logo left, Menu below’ with a transparent header. I’d like to be able to insert the page title and excerpt below the logo but above the menu and style it accordingly to match my design.
I’ve used this on a previous site, which worked really well but can’t get it to work correctly with the menu logo above, menu below transparent header option.add_filter('avf_title_args', 'avf_title_args_mod_excerpt', 99, 2); function avf_title_args_mod_excerpt($args,$id) { $excerpt = get_the_excerpt($id); if(!empty($excerpt)) { if(!empty($args['subtitle'])) { $args['subtitle'] .= ' ' . $excerpt; }else{ $args['subtitle'] = $excerpt; } } return $args; }
Any thoughts would be great.
September 24, 2018 at 4:05 pm #1013681Hey raslade,
Thank you for using Enfold.
Did you set the page to have a transparent header? The title container won’t display if header is transparent.
Best regards,
IsmaelSeptember 24, 2018 at 7:53 pm #1013790Hi Ismael
Yes I’ve used transparent header. Is there a workaround that allows me to include the title container or at least an idea of a way to add it the php files.
Thanks
Richard- This reply was modified 6 years, 1 month ago by raslade.
September 25, 2018 at 12:37 pm #1014163I’ve made some progress and combined the header widget customisation
add_action( 'ava_main_header', 'enfold_customization_header_widget_area' ); function enfold_customization_header_widget_area() { dynamic_sidebar( 'Excerpt header' ); }
with
function excerpt_as_page_title( ){ return get_the_excerpt(); } add_shortcode( 'excerpt_title', 'excerpt_as_page_title' );
It does mean i’m stuck with a way of using the header widget for my original website strapline now though. Is there a way to use the Header Phone Number/Extra Info and then move the section down using CSS so the logo can remain top left?
Richard
September 25, 2018 at 1:05 pm #1014169Fixed now using
.phone-info { font-size: 22px; color: #ffffff !important; opacity: .5; padding-top:20px; font-weight: normal; position: relative; top: 50px; } #header_meta { margin-top: -50px; }
- This reply was modified 6 years, 1 month ago by raslade.
September 26, 2018 at 4:35 am #1014517 -
AuthorPosts
- You must be logged in to reply to this topic.