badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

top stories showing in other pages | Newscard (Free)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #76083
    mohemn
    Participant

    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

    #76086

    Hi @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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.