- This topic has 6 replies, 3 voices, and was last updated 2 years, 3 months ago by Theme Horse Support Team.
-
AuthorPosts
-
January 7, 2022 at 7:11 pm #95995Raffet AliParticipant
Hi,
I do have another question, please:
How can I show the “Top Stories Post” scrolling section on all site, not only the homepage.
I have already checked the “Top Stories Post” settings, but this option is not available there.Thanks, and really highly appreciate your support.
January 9, 2022 at 1:44 am #96025Theme Horse Support TeamKeymasterHi Raffet Ali,
The Theme code need to customized to show ‘Top Stories’ Section on all the pages. For that Please go to ‘Theme directory > header.php’ file and on line no: 180, you will find below line of code:
<?php if ( ( is_front_page() || is_home() ) && $meta_news_settings['meta_news_top_stories_hide'] === 0 ) {
Now replace the above code with the code provided below:
<?php if ( $meta_news_settings['meta_news_top_stories_hide'] === 0 ) {
NOTE: Please make sure you create the Child Theme first before customizing the Theme code so that you won’t lose the customized code when updating the Theme to a Newer Version in future.
Thanks
January 9, 2022 at 7:25 am #96027Raffet AliParticipantHi,
Thank you so much. Worked perfectly.
Yes, I will also create a child theme.I still don’t know how, but will search Google on how to do that.
If you have a good link on how to create a child theme, let me know please.Many thanks and highly appreciate your support.
January 9, 2022 at 2:42 pm #96044Raffet AliParticipantHi support team,
I have just noticed that the “Top Stories Post” is scrolling only on the homepage not in all pages.
On all other pages, it shows but not scrolling at all.Can you help me please how to fix that?
January 9, 2022 at 6:06 pm #96046Theme Horse Support TeamKeymasterSorry forgot to provide the next process for script enable.
Please go to ‘Theme Directory > functions.php’. On line no: 254 You will find the below line of code:
if ( ( is_front_page() || is_home() ) && $meta_news_settings['meta_news_top_stories_hide'] == 0 ) {
now replace the above code of line with the code provided below:
if ( $meta_news_settings['meta_news_top_stories_hide'] == 0 ) {
Thanks
January 9, 2022 at 6:29 pm #96047Raffet AliParticipantAmazing… worked.
Many thanks.January 10, 2022 at 1:41 pm #96076Theme Horse Support TeamKeymasterWelcome anytime @raffet-ali
-
AuthorPosts
- You must be logged in to reply to this topic.