• Resolved Generosus

    (@generosus)


    Good Day!

    Is there a way we can increase the number of cities displayed at once when we select “Top Cities” with your widget’s filter? Currently, the display breaks after displaying the first five (5) cities. We’d like to change that to, say, ten (10) cities displayed at first.

    Details: https://prnt.sc/PPV8es4qtmVH

    A code snippet and/or a new plugin settings feature to accomplish this would be nice.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @generosus,

    We have made some improvements to the display structure in version 5.0.0 and onwards.

    Regarding your request to change the display to show 10 rows, we currently do not have a specific filter available for that purpose. However, you can make the desired modification by following these steps:

    • Locate the file wp-analytify-dashboard.js, which can be found at analytify-analytics-dashboard-widget/assets/js/wp-analytify-dashboard.js.
    • Open the file and navigate to line number 153.
    • Replace the existing code on that line with the following:

    <table class="analytify_data_tables wp_analytify_paginated" data-product-per-page="10">

    By making this change, the display will now show 10 rows instead of the default 5.
    I hope this solution is helpful to you. If you require further assistance or have any other questions, please feel free to let me know.

    Thread Starter Generosus

    (@generosus)

    Hey @jawadwp,

    Thank you so much. We tested your solution and it works great.

    Ideally, a filter would be nice to prevent plugin updates from wiping out the file change. Time permitting, perhaps you could develop one in the future.

    Again, thank you.

    @generosus your welcome!
    I appreciate your suggestion regarding the filter and will definitely consider it for future updates.

    Thread Starter Generosus

    (@generosus)

    Good Day!

    At your next revision opportunity, can you guys add a new settings feature where we can increase the number of cities, etc. displayed from the default (5) to a number of our choosing? A filter (optional) — as mentioned above — would also work for us.

    Thank you!

    Thread Starter Generosus

    (@generosus)

    Plugin Author Adnan

    (@hiddenpearls)

    @generosus Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to Increase Number of Cities Displayed?’ is closed to new replies.