Results 1 to 9 of 9
  1. #1
    CasinoDotReview is offline Private Member
    Join Date
    August 2024
    Location
    Planet Earth
    Posts
    9
    Thanks
    0
    Thanked 1 Time in 1 Post

    Question WP: Mercury theme

    Hey all.

    Given that it is quite a common theme for Casino Affiliate sites, I was wondering if we maybe have any experts in Mercury theme here? Would need some help / suggestion for one of the shortnodes as every time I use it, it crashes my whole site. Or maybe I'm just using it wrong... Anyway, would apprecite if anyone has the time and will to add me on Skype for a quick chat.

    Thanks!

    Skype: live:.cid.ecee3f8abb8d352a

  2. #2
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    32,527
    Thanks
    3,931
    Thanked 8,810 Times in 5,627 Posts

    Default

    Haven't used mercury in a while but why not show what shortcode you are trying to use as that could be the issue. Its a theme with wide use I am sure someone will be able to help.

    Post one here in the forum but be sure to wrap the code tags around it or it might make this thread unvisiable.

    Also, what version of php do you have installed, just in case that is affecting it.

    Could also be the shortcode is conflicting with another plugin.

    Rick
    Universal4

  3. #3
    CasinoDotReview is offline Private Member
    Join Date
    August 2024
    Location
    Planet Earth
    Posts
    9
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    The major problem I'm having is trying to use 3 consequtive shortnodes for casinos. So if I try this layout:
    [aces-casinos-1 items_number="3" external_link="1" items_id="Top1, Top2, Top3" columns="3" ] -> For top 3 casinos


    [aces-casinos-8 items_number="6" external_link="1" items_id="top 4-9 listing" order="ASC" orderby="name" title=""]


    [aces-casinos-8 items_number="" load_more_button="1" show_items="1" external_link="1" exclude_id="Exclude all of the above" order="ASC" orderby="name"]


    ---------------


    What ends up happening is, aces-8 (#2) takes over and the second shortnode now only shows 1 item and the load more button first loads the first shortnote list and then the second. Is there any way to set the Load More button to apply only to the last shortnode and for it to load 10 items at a time?

  4. #4
    Coinchaser is offline Private Member
    Join Date
    May 2024
    Posts
    9
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Hello,

    I used Mercury Theme for some years on the old version of my site, and I have some good knowledge about it. What is the shortcode you are experiencing issues with? And what error do you get?

    If you can describe in more details in this thread would be good, as maybe others experiencing the same issue.
    Casinofinder - Ultimate Crypto Gambling Guide

  5. #5
    CasinoDotReview is offline Private Member
    Join Date
    August 2024
    Location
    Planet Earth
    Posts
    9
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    hey Coinchaser, please see above.

    I’ve also run into another wall, not sure if it’s theme related or not, maybe someone can help?

    Google Search Console is flagging some pages with the error that the author field is missing when trying to index them. I have the author block enabled in Mercury as well as an additional Widget for Author boxes, yet the error persists. Anyone have any idea what the issue could be?

  6. #6
    Coinchaser is offline Private Member
    Join Date
    May 2024
    Posts
    9
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Quote Originally Posted by CasinoDotReview View Post
    The major problem I'm having is trying to use 3 consequtive shortnodes for casinos. So if I try this layout:
    [aces-casinos-1 items_number="3" external_link="1" items_id="Top1, Top2, Top3" columns="3" ] -> For top 3 casinos


    [aces-casinos-8 items_number="6" external_link="1" items_id="top 4-9 listing" order="ASC" orderby="name" title=""]


    [aces-casinos-8 items_number="" load_more_button="1" show_items="1" external_link="1" exclude_id="Exclude all of the above" order="ASC" orderby="name"]


    ---------------


    What ends up happening is, aces-8 (#2) takes over and the second shortnode now only shows 1 item and the load more button first loads the first shortnote list and then the second. Is there any way to set the Load More button to apply only to the last shortnode and for it to load 10 items at a time?

    Hey sorry for the late response!

    The problem you are facing is the use of the same shortcode aces-casinos-8, which conflicts with each others, so you will have to customize the shortcode file to apply a unique ID or class for the shortcode for: aces-casinos-8.

    Then you can try use this JavaScript and apply so they don't conflict with each others:

    jQuery(document).on('click', '.load-more-button', function() {
    var $button = jQuery(this);
    var $container = $button.closest('.shortcode-container'); // Specific class or ID to your shortcodes

    // Only load items for the specific container
    loadMoreItems($container);
    });


    Casinofinder - Ultimate Crypto Gambling Guide

  7. #7
    CasinoDotReview is offline Private Member
    Join Date
    August 2024
    Location
    Planet Earth
    Posts
    9
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Quote Originally Posted by Coinchaser View Post
    Hey sorry for the late response!

    The problem you are facing is the use of the same shortcode aces-casinos-8, which conflicts with each others, so you will have to customize the shortcode file to apply a unique ID or class for the shortcode for: aces-casinos-8.

    Then you can try use this JavaScript and apply so they don't conflict with each others:

    jQuery(document).on('click', '.load-more-button', function() {
    var $button = jQuery(this);
    var $container = $button.closest('.shortcode-container'); // Specific class or ID to your shortcodes

    // Only load items for the specific container
    loadMoreItems($container);
    });


    Awesome, thank you! Will give it a try!

  8. #8
    casino com's Avatar
    casino com is offline Private Member
    Join Date
    November 2024
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    For cases like this, I also recomment use the "Console" while debugging, it can show some insights

  9. #9
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    32,527
    Thanks
    3,931
    Thanked 8,810 Times in 5,627 Posts

    Default

    Good point, and don't forget to check the php error log. I might be throwing an error every time it loads the page.

    The error may or may not be specific enough to let you know what is happening as it will likely reference a line # of a specific plugin file, but it could lead you to figuring out where the error is.

    Let us know if you get this fixed and what the fix is so we can reference it in case other members have a similar issue.

    Rick
    Universal4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •