Home › Forums › VW Theme › VW CHARITY NGO PRO THEME › Customizing the 404.php page
- This topic has 7 replies, 2 voices, and was last updated 4 years, 4 months ago by developer vwtheme.
-
AuthorPosts
-
May 6, 2020 at 8:28 am #44657Blandine SillardParticipant
Hi Everyone 🙂
This is probably a FAQ but here it is anyways. I’d like to modify the image that shows on the 404.php page (the code of which is at https://paste2.org/hGWnDFAY). It shows the image shown by default is record-bg.png:
get_theme_mod(‘vw_charity_pro_inner_banner’,get_template_directory_uri().’/assets/images/record-bg.png’))
and that it can be changed with vw_charity_pro_inner_banner. What is less obvious and the reason for my question is: where exactly this setting can be modified ?
Thanks in advance for your help and for a great looking theme 🙂
May 6, 2020 at 8:36 am #44659Blandine SillardParticipantLooking at the source of the wp-admin/customize.php?theme=vw-charity-pro page does not show the vw_charity_pro_inner_banner anywhere which suggests there is no way to modify the value from the web interface. Is this confirmed or am I missing something ?
May 6, 2020 at 12:15 pm #44667Blandine SillardParticipantIt turns out to be somewhat of a challenge that involves a) adding a custom CSS to override the banner, b) providing translations. The translations require to produce a .mo file but the .pot file is invalid and cannot be loaded as is. It needs to be cleaned up first. For instance some strings end with “, $count which indicates the parser looking for translatable strings did not do the right job.
May 7, 2020 at 10:11 am #44699developer vwthemeParticipantHi,
Yes, this image added for the title-banner plugin, you can change the image from the banner setting.
The customize.php file is used for settings set or gets data from the database it does not display any data that’s why not used vw_charity_pro_inner_banner id.
Many Thanks
May 14, 2020 at 9:10 am #44914Blandine SillardParticipant> The customize.php file is used for settings set or gets data from the database it does not display any data that’s why not used vw_charity_pro_inner_banner id.
I’m sorry but I do not understand this sentence ?
Thanks for taking the time to discuss this with me 🙂
May 15, 2020 at 8:41 am #44937developer vwthemeParticipantHi,
Above solution is your second query, now we do not understand what exact issue are you facing can you send us your all query again we will provide you a solution for that.
Many Thanks
June 3, 2020 at 9:35 am #45485Blandine SillardParticipant> can you send us your all query again we will provide you a solution for that.
’d like to modify the image that shows on the 404.php page (the code of which is at https://paste2.org/hGWnDFAY). It shows the image shown by default is record-bg.png:
get_theme_mod(‘vw_charity_pro_inner_banner’,get_template_directory_uri().’/assets/images/record-bg.png’))
and that it can be changed with vw_charity_pro_inner_banner. Where exactly can this setting be modified ?
June 9, 2020 at 9:44 am #45643developer vwthemeParticipantHi,
You can add the image in the theme folder >> assets >> images folder with the same name of the image file that is record-bg.png
Many Thanks
-
AuthorPosts
- You must be logged in to reply to this topic.