Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.

    #1013681

    Hey 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,
    Ismael

    #1013790

    Hi 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.
    #1014163

    I’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

    #1014169

    Fixed 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.
    #1014517

    Hi,

    Great! Glad that you found a solution. Let us know if you need anything else. :)

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.