Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    Putting that code as shown in that post in a code snippet or in your functions.php file isn’t enough, because you’re not telling WordPress when on the page to output the results.

    You either need to use it in a WordPress hook which targets a specific part of your page, or use it in a child theme template file.

    For example, you could put it somewhere in the page.php template file of your theme. If adding it to your theme template files, see also:

    https://learn.wordpress.org/lesson-plan/anatomy-of-a-theme/
    https://yoast.com/wordpress-theme-anatomy/

    Thread Starter Elton Heta

    (@eltonheta)

    That part of the code, apart from not working for me, breaks the wordpress panel, gives an error, maybe it is not compatible with the latest version of wordpress.

    Plugin Author Gemini Labs

    (@geminilabs)

    Here I am using the code inside the /twentytwentyone/template-parts/content/content-page.php file of the Twenty Twenty-One theme:

    And here is the debug output:

    Thread Starter Elton Heta

    (@eltonheta)

    Yes, this code also appears to me, but it also appears on the dashboard, maybe because I put it directly in function.php, but from the code that comes back, isn’t there any possibility to display the carousel directly through the shortcode instead of this code.

    Plugin Author Gemini Labs

    (@geminilabs)

    The code doesn’t build a carousel. You can use it to build your own HTML markup for each slide, but you’ll still need to implement a carousel JavaScript library to transform the HTML markup into a slider.

    If you want to display a carousel directly from the [site_reviews] shortcode, then you will need to either use the Review Themes addon, or use the first method outlined in the forum post you referenced along with some other slider WordPress plugin. I don’t know of any slider plugin that does this, but you may find one in the WordPress plugin directory.

    • This reply was modified 3 years, 6 months ago by Gemini Labs.
    Thread Starter Elton Heta

    (@eltonheta)

    Ah ok, I was expecting to show the carousel with this, so it’s not like there is any other simple way except to use addons or premium.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Problem with create Carousel implementation,’ is closed to new replies.