A class is not content, so what are you really trying to accomplish?
I would like to replace a div’s content with a function at the functions.php file and the div has a class name lets say .divclass
Is it possible to do so?
Thank you!
How is that div created? You can’t change the content via CSS.
The div is the footer I would like to remove the credit without removing the copyright statement etc. Therefore I need to replace the entire content. there are app remove footer credit but it does not work, and now I am seeking for solution to use PHP function to get the job done. Any idea?
The proper way, if your theme does not have an option to do so internally, is to create a child theme and replace/modify the PHP file(s) that output the statement.
What theme are you using?
I am using https://ww.wp.xz.cn/themes/calliope/
it is already a child theme of Colibri WP.
I would like to remove the footer credit but remain the copyright statement.
Any idea?
Thank you!
I recommend asking at https://ww.wp.xz.cn/support/theme/calliope#new-post so the theme’s developers and support community can help you with this.