[Support request] Adding author job title just below author name

Home Forums Support [Support request] Adding author job title just below author name

Home Forums Support Adding author job title just below author name

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1072557
    Hilton

    Hi,

    Is there a way to add job title just below author name? I tried all hook placements, but it only displays before or after author name + biography.

    Thanks

    #1072596
    David
    Staff
    Customer Support

    Hi there,

    try the generate_after_archive_title Hook with a Priority of 5 – this should place it before the Info

    #1072612
    Hilton

    Hi David,

    Now it is almost in the right place… how can I move it up a little further aligning it left just below the author name?

    #1072625
    David
    Staff
    Customer Support

    Try this CSS:

    .author h1.page-title {
        margin-bottom: 0.25em;
    }
    .author .page-title + div {
        float: left;
    }
    .author .author-info {
        margin-top: 1.5em;
    }
    #1072638
    Hilton

    David,

    Considering the CSS best practices, it is better using your css or a custom CSS for the job title, like the one below? (or there is no difference?)

    .job-title {
    margin-top: -40px;
    margin-bottom: 20px;
    }

    #1072680
    David
    Staff
    Customer Support

    If you can add the CSS Class to the element then yes that is the better method.

    #1072692
    Hilton

    Thanks 😉

    #1072697
    David
    Staff
    Customer Support

    You’re welcome

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