Forum Replies Created
-
AuthorPosts
-
Yes thank you. Everything works great! You can close the topic…
I have not changed the title field, it is the same as you set.
Screenshots:
https://prnt.sc/1ilt553
https://prnt.sc/1iltjrqNo thanks. You can close
Thank you. I understood you…
Now everything seems to be working well. I will watch for a few days, and if I write anything. Thank you
I was just overjoyed when I discovered a new problem.
As I understand it, you have turned on the setting: “Advanced Layout Editor”. For a Blog page, this works great. But all the other headings and tags immediately break down.
Category pages get incredibly large, as all articles are displayed in full, and not just a preview. The grid layout doesn’t work either.
Thus, I cannot set the blog layout to “Advanced style” ((
Yes, everything works. Thank you for your support and help in this matter!
On your advice, I tried to do it myself, it didn’t work …
Temporary login provided by:The temporary entrance must still work for 1 day.
> I tried to remove the SEO title completely, nothing changes.
> In Enfold settings, if you remove a blog page, the title changes. But page numbers are still not added to Title and Description, as in headings, tags …This code works great, but except for the “Blog” page.
if ( ! function_exists( ‘avf_add_page_number_to_title’ ) )
{
function avf_add_page_number_to_title( $title )
{
global $page;
$paged = get_query_var( ‘paged’ ) ? get_query_var( ‘paged’ ) : 1;
$paged = $paged ? $paged : get_query_var( ‘avia-element-paging’ );
! empty ( $page ) && 1 < $page && $paged = $page;$paged > 1 && $title .= ‘ – ‘ . sprintf( __( ‘Page %s’ ), $paged );
return $title;
}add_filter( ‘wpseo_metadesc’, ‘avf_add_page_number_to_title’, 100, 1 );
add_filter( ‘wpseo_title’, ‘avf_add_page_number_to_title’, 100, 1 );
add_filter( ‘avf_title_tag’, ‘avf_add_page_number_to_title’, 100, 1 );
}Yes of course. If this helps you find the reason … Thanks
Thank you. Sent you a temporary entry…
A blog page is set in the settings. When you go to 2,3,4 pages – The title does not change (
Paginated page: https://www.ulovanet.ru/blog/
Screenshot: https://prnt.sc/1792m5l
I understand you, but Yandex swears and categorically asks to make the titles and descriptions on the pagination pages Unique …
Screenshot: https://prnt.sc/16q3qmf
June 25, 2021 at 1:43 pm in reply to: Yoast not adding page number to home pagination title #1307438Thanks for this code. For me it works great and adds page numbers to Title and Description.
This code works for categories and tags, but it doesn’t work for the Blog page. Help me please…
url: https://www.ulovanet.ru/blog/?avia-element-paging=2#home-blog
Now on the site Enfold version – 4.7.6.3. Everything works perfectly. But if I upgrade to Version 4.7.6.4 – Everything breaks.
Do you think it makes sense to do it again?
I forgot to say that I still have css added to the custom.css file. This probably can’t be a problem?
I completely uninstalled Enfold and installed it again. To no avail. As I understand it, it’s not about Enfold Child, but about Enfold.
I have removed all modified code from Enfold Child. It did not help.
https://prnt.sc/vus62c
https://prnt.sc/vus78w
https://prnt.sc/vus7w3Yes, I understand you. Sorry to write in multiple places. It’s just that there was the same problem, only with the Parent theme
First, I have never installed Enfold Child. After each update of the Enfold theme, I added all the changes in the code manually.
The error occurred immediately after I added this code in Function.php:
// set builder mode to debug
add_action (‘avia_builder_mode’, “builder_set_debug”);
function builder_set_debug ()
{
return “debug”;
}I have given you temporary access. As I understand it, you got the same error. You recommended that I install Enfold Child, which I did. But the error is still present.
I can completely remove all unnecessary code from Function.php, but that doesn’t solve my problem in any way. I’ve already tried ((
I removed the extra code. Uncommented removed too.
Screenshot: https://prnt.sc/vu25vbИзменения кода только в этих файлах:
1. Function.php
2. loop-comments.php
3. loop-index.php
4. postslider.php
5. Single.phpI did everything as you said. Nothing helps. Mistake.
Due to this, I cannot Update the Enfold theme ((
https://prnt.sc/vtc6rz
https://prnt.sc/vtc8c9
https://prnt.sc/vtc9uk
https://prnt.sc/vtca2sI tried everything as you suggested. There are errors anyway.
Did everything on the staging site using the Wp Staging plugin:1.https: //www.ulovanet.ru/staging/?page_id=40210 – Error;
2.https: //www.ulovanet.ru/staging/?p=12875 – Error. Google Maps doesn’t work;
3. Error in theme editor – Function.php.I tried to display it in more detail in the Screenshots … I also show a small part of the code Php_errors
https://prnt.sc/vtc6rz
https://prnt.sc/vtc8c9
https://prnt.sc/vtc9uk
https://prnt.sc/vtca2sThanks. I will definitely try to do this, but a little later.
First you need to calm down after today’s stress, due to problems with the site. The site was broken for over an hour with an Error 500. This is a disaster for me.
I restored everything back. Switched the working version of the theme from Enfold Child to Enfold.
To prevent this from happening, I created an intermediate site, as you advised.
Enfold Child doesn’t work for me. Nobody knows why ((The problem I think is in this file:
../home/admin/web/ulovanet.ru/public_html/wp-content/themes/enfold-childToo many duplicates of PHP Fatal error in PHP_errors.log file
[20-Nov-2020 05:19:15 UTC] PHP Fatal error: Cannot redeclare builder_set_debug() (previously declared in /home/admin/web/ulovanet.ru/public_html/wp-content/themes/enfold-child/functions.php:20) in /home/admin/web/ulovanet.ru/public_html/wp-content/themes/enfold/functions.php on line 21
[20-Nov-2020 05:19:19 UTC] PHP Fatal error: Cannot redeclare builder_set_debug() (previously declared in /home/admin/web/ulovanet.ru/public_html/wp-content/themes/enfold-child/functions.php:20) in /home/admin/web/ulovanet.ru/public_html/wp-content/themes/enfold/functions.php on line 21This is just a small part to show you. There are a lot of duplicates !!!
Please do it quickly ((Even yesterday’s recovery does not help …
Why did it happen? I created an intermediate site.Yes of course
I created an intermediate site:
1. Function.php is broken. Does not work;
2. Page: https://www.ulovanet.ru/tik-tok-rybalka-video-smotrite-onlajn-skachat/ – Broken. Does not work;
3. // set builder mode to debug
add_action (‘avia_builder_mode’, “builder_set_debug”);
function builder_set_debug ()
{
return “debug”;
}
Broken. Does not work;4. / * Pagination for Blog pages. So that when you go to page 2, the page does not go to the very top * /
function add_custom_script () {
?>
<script>
jQuery (window) .load (function () {
jQuery (“nav.pagination a”). each (function () {
var theLink = jQuery (this) .attr (“href”);
jQuery (this) .attr (“href”, theLink + “# home-blog”);
});
});
</script>
<? php
}
add_action (‘wp_footer’, ‘add_custom_script’);
/ * End of Pagination for Blog pages * /
Broken. Does not work;Maybe something else breaks on the site after Updating the theme. It takes more time to notice this ((
Screenshots:
1. https://prnt.sc/vkisid
2. https://prnt.sc/vkisro
3. https://prnt.sc/vkit9pYou are absolutely right. The code will work!
The code will stop working when I update the Parent theme.If within 30 minutes I cannot fix the problem, then I restore the previous version of Enfold.
Since together with the Code, this page still stops working for me:
https://www.ulovanet.ru/tik-tok-rybalka-video-smotrite-onlajn-skachat/You also need to look for a problem.
- This reply was modified 4 years, 1 month ago by Konstantin.
Yes of course. thanks
Thanks. But unfortunately I still can’t ((. I did everything as you said. I placed all the files of the Child theme in the necessary folders and subfolders …
In principle, it practically worked out. Only this code in Function.php does not work:
/ * Pagination for Blog pages. So that when you go to page 2, the page does not go to the very top * /
function add_custom_script () {
?>
<script>
jQuery (window) .load (function () {
jQuery (“nav.pagination a”). each (function () {
var theLink = jQuery (this) .attr (“href”);
jQuery (this) .attr (“href”, theLink + “# home-blog”);
});
});
</script>
<? php
}
add_action (‘wp_footer’, ‘add_custom_script’);
/ * End of Pagination for Blog pages * /And after the Update, some Plugins break …
Also, please tell me: Which topic should be constantly Active: Enfold or Enfold Child?
So, why do I need a Child theme then? I can make changes to the Parent theme after every update.
What is the point then from the Child theme? I do not understand ((
Yes thank you. You can close the topic.
-
AuthorPosts