-
Author
-
December 17, 2015 at 07:05 #93790igor7137Participant
How do I remove the title page of h1 and leave only h2?
December 17, 2015 at 07:05 #93791igor7137Participantscreenshot
Attachments:
You must be logged in to view attached files.December 17, 2015 at 16:27 #93847sharmstrModeratorThat shouldnt be there. Did you add it?
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
December 17, 2015 at 16:32 #93849igor7137ParticipantYes.
I need to get the title was h2, rather than h1.Attachments:
You must be logged in to view attached files.December 17, 2015 at 16:40 #93851sharmstrModeratorCan I ask why you want to have an H2 instead of H1? You’d have to change and maintain code to do what you want. If its a styling issue, you can easily make the h1 title look like h2. I’m not trying to be difficult, just trying to offer a better solution, but need to understand why you want to do it.
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
December 17, 2015 at 16:48 #93853igor7137ParticipantFor search engines.
How can I change the code?December 17, 2015 at 17:00 #93858sharmstrModeratorPut this in your child theme’s functions.php file
COPY CODEfunction kleo_title_main_content() { if (sq_option('title_location', 'breadcrumb') == 'main') { $title_status = true; if( is_singular() && get_cfield( 'title_checkbox' ) == 1 ) { $title_status = false; } if ( $title_status ) { if ( (is_singular() ) && get_cfield( 'custom_title' ) && get_cfield( 'custom_title' ) != '' ) { $title = get_cfield( 'custom_title' ); } else { $title = kleo_title(); } echo '<div class="container">'; echo '<h2 class="page-title">' . $title . '</h2>'; echo '</div>'; } } }
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
December 17, 2015 at 17:24 #93867igor7137ParticipantI have now is not a subsidiary subject, and the parent, and there is this code.
December 17, 2015 at 17:51 #93870sharmstrModeratorI dont understand what you mean.
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
December 17, 2015 at 17:59 #93872sharmstrModeratorThe code I gave to will change the h1 to h2. If you want to remove the h1 completely, just delete that part of the script. Delete
COPY CODEecho '<h2 class="page-title">' . $title . '</h2>';
I hope that’s what you mean.
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
December 17, 2015 at 18:09 #93876igor7137ParticipantI already have the code.
It removed echo ‘<h2 class=”page-title”>’ . $title . ‘</h2>’; , to no avail.Attachments:
You must be logged in to view attached files.December 17, 2015 at 18:10 #93879sharmstrModeratorI still see it in your code.
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
December 17, 2015 at 18:15 #93883igor7137ParticipantThat is now removed.
Attachments:
You must be logged in to view attached files.December 17, 2015 at 18:25 #93890sharmstrModeratorAhhh, sorry. That code was for the title if it was in the main section. I dont see a way to override the h1 so it will be upgrade safe, but the h1 tag is in /lib/theme-functions.php around line 349
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
December 17, 2015 at 18:28 #93894igor7137ParticipantI’ve done everything. Thank you very much! 🙂
Attachments:
You must be logged in to view attached files.December 17, 2015 at 18:45 #93898sharmstrModeratorSorry that it took so long 🙁
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
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.