- This topic has 1 reply, 2 voices, and was last updated 4 years, 1 month ago by Theme Horse Support Team.
-
AuthorPosts
-
March 23, 2020 at 5:25 am #76083mohemnParticipant
Hello Themehorse Team,
Thank you very much for your great work in providing great themes in both Free and Pro version, i really like your way in provide the free edition as it almost as Pro.
Going to my question, how i can show the (top_stories) in all pages? now it appears only in frontpage.
Before i submit this question, i tried to find the way and i goes to header.php file, then goes to line #145 which is:
<?php if ( ( is_front_page() || is_home() ) && $newscard_settings[‘newscard_top_stories_hide’] === 0 ) {
I removed:
( is_front_page() || is_home() ) &&
And saved the file it show the top stories in other pages but the problem is the news stop scrolling and only the 1 post show with no movements (this in the other pages only, while in FrontPage it still scrolling).
Do you any note about that? can you improve my edit to fix the issue.
Please advice.
Im using Newscard free edition, last version (1.2.4)
Thank you
March 23, 2020 at 9:51 am #76086Theme Horse Support TeamKeymasterHi @mohemn,
Yes you made the correct changes on header.php file. But it’s not working on other pages because to improve page loading, Script for the post scroll is not loaded on other pages so u need to load script for all the pages as well.
To load script on all the pages go the Theme directory/functions.php file. and go to line no: 166. there you will find below code.
if ( ( is_front_page() || is_home() ) && $newscard_settings['newscard_top_stories_hide'] == 0 ) {
In the given code again remove the same code like you removed on header.php file. ie;
( is_front_page() || is_home() ) &&
We recommended you to edit those code by creating a child theme so that your code won’t be lost while updating the theme to the new version.
Thanks
-
AuthorPosts
- You must be logged in to reply to this topic.