Tagged: page title
-
AuthorPosts
-
January 9, 2020 at 4:33 pm #1171858
How can I show the page title when main manue is set to left sidebar?
This option shows only with main menue is set to header. But I would like the page title showing with left sidebar menues too.January 9, 2020 at 4:42 pm #1171861Hi,
You can try adding following code to Functions.php file in Appearance > Editor
function av_title_sc( ){ echo "<h1 class='page-title'>". get_the_title() ."</h1>"; } add_shortcode( 'av_page_title', 'av_title_sc' );
and add following shortcode to your page [av_page_title] to display the title :)
Cheers!
YigitJanuary 9, 2020 at 4:55 pm #1171867I would like to show all(!) page titles, not the title of a single page. What I would expect is e.g. a check box to achieve this. Analogous to when the menu is set to “header”.
Your reply shows a very tricky solution which needs (a) to modify the theme and (b) to add the shortcode to every page. This could easily be done simply adding the title (not the shortcode) in the content field of the page. Which nevertheless does not solve the problem.
Is it possible to put the page title in the “fullwith area”?
- This reply was modified 4 years, 10 months ago by etaerc.
January 9, 2020 at 11:11 pm #1172013After examining the source code I discovered that putting the “Logo and Main Menu” to the sidebar actually sets
settings['header_title_bar'] == 'hidden_title_bar'
and therefore the functionavia_title
(infunctions-enfold.php
) returns an empty string.A workaround is to uncomment the line #449 (as of Version 4.6.3)
// if($header_settings['header_title_bar'] == 'hidden_title_bar') return "";
This will allow the title (and the breadcrumbs) to display.If you don’t want the breadcrumbs change the line #449 to the following
if($header_settings['header_title_bar'] == 'hidden_title_bar') $args['breadcrumb'] = false;
Nevertheless I would suggest to add this as a feature in a new version.
- This reply was modified 4 years, 10 months ago by etaerc.
January 9, 2020 at 11:28 pm #1172020Hi,
Thank you very much for those details, we appreciate them a lot! :)
Someone else might also find them really useful.Best regards,
BasilisJune 3, 2020 at 3:51 pm #1219115Hi Basilis,
my suggestions were not intended for “someone else” but for you, i.e. for Kriesi.
Best regardsJune 11, 2020 at 5:01 pm #1221796 -
AuthorPosts
- You must be logged in to reply to this topic.