On the "Inspiration" page, if you click on a blog post which is an image post type or a quote post type, you go to the single post page. I don't want that. I want that if you click on the blog post (if it is an image post type or a quote post type) nothing happens.
How can I redeclare this function? Because I want to redeclare it in my child theme, but I get this error:
Fatal error: Cannot redeclare thegem_get_post_featured_content() (previously declared in /home/reddle1q/public_html/deux/wp-content/themes/thegem-child/functions.php:11) in /home/reddle1q/public_html/deux/wp-content/themes/thegem/inc/content.php on line 849
Beside that, if I activate the standard The Gem Child theme (which I called 'Deux' on my website), a lot of the website get different colors and sizes. Why is this?
It's not possible to redeclare the function in the child theme, it's not an action or filter, you need to create your own function in the child theme for example thegem_get_post_featured_content_new() with your functionality and call it in the template which you need. After the activating the child theme you just need to resave theme options to apply your styles from the theme options into custom.css file in the child theme.
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Hello,
See the first attachment. When I hover over an article, an icon appears, can I remove this?
Besides that, I want that images and quotes post types don't like to the single post page, how do I achieve that?
Regards,
Joren
Hi,
Please share admin access. We will try to inspect problem on your site.
Hello,
You can login at www.reddle.nl/deux/wp-admin
Username: thegemsupport
Password: CZ#8v8J2sdZZu$D0v@bD(B)u
Regards,
Joren
Sorry, your login/password is not correct.
Hello,
Could you try it again now?
Regards,
Joren
1)pls. use following css:
2) Please explain what you meant, I did not understand you.
That worked, thanks!
Do you also know the solution for my other question, that image and quote post types don't link to the single post page?
Regards,
Joren
Explain more in detail what you mean?
On the "Inspiration" page, if you click on a blog post which is an image post type or a quote post type, you go to the single post page. I don't want that. I want that if you click on the blog post (if it is an image post type or a quote post type) nothing happens.
Regards,
Joren
Unfortunately, this is a standard function of WordPress and it can not be changed.
Hello,
Then I got a more technical question. The variable '$thegem_featured_content', in which template file is this variable defined?
Regards,
Joren
$thegem_featured_content = thegem_get_post_featured_content(get_the_ID());
Function thegem_get_post_featured_content in /wp-content/themes/thegem/inc/content.php line 803
Why do you need this information?
Because this variables creates the link around the image. So I need to change this function.
Regards,
Joren
Hello,
How can I redeclare this function? Because I want to redeclare it in my child theme, but I get this error:
Fatal error: Cannot redeclare thegem_get_post_featured_content() (previously declared in /home/reddle1q/public_html/deux/wp-content/themes/thegem-child/functions.php:11) in /home/reddle1q/public_html/deux/wp-content/themes/thegem/inc/content.php on line 849
Regards,
Joren
Beside that, if I activate the standard The Gem Child theme (which I called 'Deux' on my website), a lot of the website get different colors and sizes. Why is this?
Regards,
Joren
HI!
It's not possible to redeclare the function in the child theme, it's not an action or filter, you need to create your own function in the child theme for example thegem_get_post_featured_content_new() with your functionality and call it in the template which you need. After the activating the child theme you just need to resave theme options to apply your styles from the theme options into custom.css file in the child theme.
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver