-
AuthorPosts
-
December 21, 2015 at 2:02 pm #555901
Hi,
I had this problem before, but the code I used then is not working now.
I a single post I would like to replace “blog – Latest posts” with the post title.
Can you please help me with the code to place the post’s title instead?Thank you.
December 21, 2015 at 2:06 pm #555905Hi eyeweb!
Do you mind creating a temporary admin login and posting it here privately?
Regards,
YigitDecember 21, 2015 at 2:36 pm #555921Here it is:
December 21, 2015 at 2:48 pm #555930Hey!
I adjusted the code slightly and added to functions.php file of your child theme. Please review your website now
Best regards,
YigitDecember 21, 2015 at 2:55 pm #555933Hi Yigit,
Now there are 2 titles with H1.
Is it possible to remove the inner one?Thank you!
December 21, 2015 at 2:58 pm #555936Hi!
I adjusted the code and changed title bar title to div tag instead of h1.
Regards,
YigitDecember 21, 2015 at 3:02 pm #555938Hi,
Can you please remove the second one?
December 21, 2015 at 3:15 pm #555946Hi!
Please go to Enfold/includes/helper-post-format.php file and find
$heading = is_singular() ? "h1" : "h2";
and change it to
$heading = is_singular() ? "h2" : "h2";
Regards,
YigitDecember 21, 2015 at 3:25 pm #555955Hi,
I copied the file to the child theme and made the change.
Nothing happens (I think).
Can you please check?December 21, 2015 at 6:07 pm #556100Still need help.
December 21, 2015 at 6:13 pm #556106Hey!
Please add following code to Functions.php file of your child theme
function avia_default_title_filter($current_post) { if(!empty($current_post['title'])) { $heading = is_singular() ? "h2" : "h2"; $output = ""; //$output .= "<{$heading} class='post-title entry-title ". avia_offset_class('meta', false). "'>"; $output .= "<{$heading} class='post-title entry-title' ".avia_markup_helper(array('context' => 'entry_title','echo'=>false)).">"; $output .= " <a href='".get_permalink()."' rel='bookmark' title='". __('Permanent Link:','avia_framework')." ".$current_post['title']."'>".$current_post['title']; $output .= " <span class='post-format-icon minor-meta'></span>"; $output .= " </a>"; $output .= "</{$heading}>"; $current_post['title'] = $output; } return $current_post; }
Regards,
Yigit- This reply was modified 8 years, 11 months ago by Yigit.
December 21, 2015 at 6:30 pm #556118Hi Yigit,
I added the code, but the title still displays twice.
Also in products.
I would like to remove the second one.December 22, 2015 at 11:19 am #556427Hi Yigit,
I still need help with this issue.
Can you please take a look again?December 24, 2015 at 5:55 am #557360Hey!
We added this code in the functions.php in order to remove the default title:
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 );
Regards,
IsmaelDecember 24, 2015 at 11:33 am #557397Thank you.
Is it possible to do so also in single post?December 27, 2015 at 1:52 am #557511Hi!
Try commenting out line 209 in the /enfold/includes/loop-index.php file.
echo $title;
If you want to do this in a child theme then copy the file to your child theme and edit it there, /child-theme/includes/loop-index.php.
Regards,
Elliott- This reply was modified 8 years, 11 months ago by Elliott.
-
AuthorPosts
- You must be logged in to reply to this topic.