This topic has 6 replies, 2 voices, and was last updated 8 years by geo7thqueen.

  • Author
  • #107525
     geo7thqueen
    Participant

    Right now, it seems the template for any of the pages with sidbars puts the H1 into the article column, so it goes like this:

    [sidebar column] [article column – TITLE HERE] [sidebar column]

    when I’d rather have the columns start after the title area, so it goes more like this:

    [title row – full width column – TITLE GOES HERE]
    [sidebar column] [article column] [sidebar column]

     

    That way the sidebars start below the title area.

    How can I change the template files to accommodate this? I looked in left-right-sidebars.php but it looks like it is pulling a function.php for case 3lr.

    So would it require writing a new function and calling it in that case, or is there a more straight forward way to just drop some html into one of the php pages (nothing more complex than calling the page title inside of a few divs with the appropriate class applied)?

     

     

     

    #107599
     sharmstr
    Moderator

    Theme Options > Layout > Page Title location: Breadcrumb section.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #107903
     geo7thqueen
    Participant

    @sharmstr

    Thanks for the idea! I didn’t think about breadcrumb section. Although I want different content than what is in the breadcrumb section.

    Looking for:

    <h1> Title</h1>
    <titleSlug (a short paragraph)>Text varies by page</titleSlug>
    </hr>

    Would it be best to edit breadcrumb.php (or whatever the file is called where the breadcrumb is) or I found kleo_before_main which seems to be respected by the buddypress pages. A quick search sees that function either add_action or do_action, but it doesn’t seem to be defined. Or is there a better function?

    This will leave the slug uneditable by anyone using the back end, but as it is kind of a motto/description for the page, it shouldn’t change much, it at all.

    So would it be best to edit the breadcrumb.php or create function kleo_before_main (with the above format and then have a function that populates the titleSlug as a function of page title)?

    #107946
     sharmstr
    Moderator

    I wouldnt touch breadcrumb.php. You want either /page-parts/general-title-section.php or kleo_before_main. Entirely up to you.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #107951
     geo7thqueen
    Participant

    @sharmstr

    Okay, will leave breadcrumb.php alone. (Actually I just guessed at the name and didn’t hunt for it yet.)

    My feeling is that the title and slug (or sub-head) is part of the content area, and not part of the header area (‘general-title-section.php’ contains menus and navbar, not content).

    So, kleo_before_main or the like might be the right direction. Is that the best place? I’ve found a few that are candidates (although I haven’t tested them yet).

    ‘kleo_before_main’
    ‘kleo_bp_header'(BP only – might be useful if I want a BP only h1 section, but again it is head, not content)
    ‘kleo_before_main_content’
    ‘kleo_title_main_content’

    Is there some documentation that covers all of these pieces and how the page builds? I don’t want to bug you with questions if this is documented, and testing each of them (or any others I find in the future) takes a lot of time.

    Thanks!

    #107993
     sharmstr
    Moderator

    Here a list of the hooks: https://archived.seventhqueen.com/documentation/kleo#hooks

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #108426
     geo7thqueen
    Participant

    @sharmstr — Thank you!

    I must have skimmed past that the first time I read the documentation. I should have searched a bit more before asking.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?