Forum Replies Created
-
AuthorPosts
-
June 11, 2023 at 10:38 am in reply to: ALB element custom styling lost with duplicate plugins #1410211
For others using a duplicate page / post plugin. In my case the solution is to disable the post-css file with following code in the functions.php of your child theme:
function custom_avf_post_css_create_file( $create ) {
return false;
}add_filter( ‘avf_post_css_create_file’, ‘custom_avf_post_css_create_file’, 10, 1 );
Cheers,
MartinJune 10, 2023 at 4:12 pm in reply to: ALB element custom styling lost with duplicate plugins #1410155Hi Nikko,
Perfect, thanks for adding the code to the functions.php. Seems to work (I can now duplicate pages and posts and the original with custom styles remains). Are there any downsides if the post-css file is disabled?
Cheers,
MartinJune 4, 2023 at 12:25 pm in reply to: ALB element custom styling lost with duplicate plugins #1409532This reply has been marked as private.June 4, 2023 at 10:34 am in reply to: ALB element custom styling lost with duplicate plugins #1409524This reply has been marked as private.June 2, 2023 at 4:47 pm in reply to: ALB element custom styling lost with duplicate plugins #1409409This reply has been marked as private.May 31, 2023 at 11:57 am in reply to: ALB element custom styling lost with duplicate plugins #1409132This reply has been marked as private.May 24, 2023 at 4:43 pm in reply to: ALB element custom styling lost with duplicate plugins #1408453Hi Nikko,
Great thanks for checking.
You can login to my staging site (debug mode enabled, most plugins are deactivated, Duplicate Page Plugin is activated) under.
[moved to private content]If you duplicate under Pages for example the Subpage and afterwards publish the duplicate. The original page (eventually with a hard reload) it looks like this (as an example). Sometimes it works (maybe one out of five tries) but in most tries the custom adjustments from the ALB went missing ( I’m using Firefox, although I doubt that this has an impact).
Original Page (still looks like this if the duplicate is not published but exists as a draft)
Original Page after the duplicate is published
Thanks for checking,
Cheers,
Martin- This reply was modified 1 year, 7 months ago by Nikko.
-
AuthorPosts