This topic has 6 replies, 2 voices, and was last updated 8 years by geo7thqueen.
-
Author
-
March 1, 2016 at 01:56 #107525geo7thqueenParticipant
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)?
March 1, 2016 at 13:32 #107599sharmstrModeratorTheme 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 solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
March 1, 2016 at 21:55 #107903geo7thqueenParticipantThanks 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 createfunction kleo_before_main
(with the above format and then have a function that populates the titleSlug as a function of page title)?March 2, 2016 at 04:21 #107946sharmstrModeratorI 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 solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
March 2, 2016 at 04:55 #107951geo7thqueenParticipantOkay, 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!
March 2, 2016 at 14:00 #107993sharmstrModeratorHere 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 solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
March 4, 2016 at 03:17 #108426geo7thqueenParticipant@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.
-
AuthorPosts
You must be logged in to reply to this topic.