Unable To display rate my post star on wordpress child theme as they supposed to
-
NB please use mobile view to check how it looks like.
I’ve used echo do_shortcode(“[ratemypost]”); on the mobile single page
but the rate icons, style and the js components are not showing up as they’re displayed and included on the desktop version.When I try to include the css and js manually on the single page the stars are displayed correctly. and I generate the nonce inthe rmp_frontend with the help of wp function. with this approach, it says invalid wp token. but when I use previously generated nonce it works fine
-> manual include of this section doesn’t working
// var rmp_frontend = { // "admin_ajax":"https:\/\/addisfortune.news\/wp-admin\/admin-ajax.php", // "postID":"<?php echo $post->ID; ?>", // "noVotes":"No votes so far! Be the first to rate this post.", // "cookie":"You already voted! This vote will not be counted!", // "afterVote":"Thank you for rating this post!", // "notShowRating":"1", // "social":"1", // "feedback":"1", // "cookieDisable":"1", // "emptyFeedback":"Please insert your feedback in the box above!", // "hoverTexts":"2", // "preventAccidental":"2", // "grecaptcha":"1", // "siteKey":"", // "votingPriv":"1", // "loggedIn":"1", // "positiveThreshold":"2", // "ajaxLoad":"1", // "nonce":'<?php echo wp_create_nonce(); ?>' // };
The page I need help with: [log in to see the link]
- The topic ‘Unable To display rate my post star on wordpress child theme as they supposed to’ is closed to new replies.