Check out the latest update of Archi version 3.6.8.2!

Okay
  Public Ticket #1302074
Theme With Sensei button of "suscribe course"
Open

Comments

  • gualde started the conversation

    Hi,

    I can't see the button to suscribe the course (with sensei) at the file sense/single-course.php, but if I change the theme to Twenty Seventeen this button appears. I try to remplace the code of original plugin to new, but the problems remains.

    regards

  •  514
    Ocean replied

    Hi,

    Can you send me some screenshot about this problem?

    Thanks.

  •  514
    Ocean replied

    Hi,

    Please try adding custom css code here: http://www.awesomescreenshot.com/image/868495/cf4c1c5da08b7ecc7e3fc520f49d1229

    .course-meta.course-enrolment{ display: block; }

  • gualde replied

    Hello, the suscribe button doesn't work at the main page that show all courses. This button appears at the archive-course.php at this line. The href not have any parameter.

    //theme:
    <p class="btn-add"> <a href="#"><i class="icon-export-4"></i> <?php esc_html_e(' Subscribe','learn'); ?></a></p>
    
  •  514
    Ocean replied

    Hi,

    Sorry, it's my mistake.

    You can add this code to href:

    <?php echo esc_url(learn_theme_option('link_sub')); ?>

    Then you can add link in Theme Options.

  • gualde replied

    I added this line and it still doesn't work. Can you help me?

    Two attempt: 

    <p class="btn-add"> <a href="<?php echo esc_url(learn_theme_option('link_sub')); ?>"><?php esc_html_e(' Subscribe','learn'); ?></a></p>
    <p class="btn-add"> <a href="<?php echo esc_url(learn_theme_option('link_sub')); ?>"><i class="icon-export-4"></i> <?php esc_html_e(' Subscribe','learn'); ?></a></p>
  •  514
    Ocean replied

    Hi,

    That link works on course page.

    Please add link follow attach image to work on main page.

    Attached files:  Edit Page ‹ Learn — WordPress (1).png

  • gualde replied

    Hi,

    I think that you don't understand me. 
    I wan't to subscribe via form or subscribe via shortcode in Visual Composer.

    When I config the Sensei Plugin, set a page to list the courses. This page are associate to archive-course.php
    This page has a line that include a button to subscribe the course, I need that this button works to subscribe the course via Sensei system

    attempt: 

    <p class="btn-add"> <a href="<?php echo esc_url(learn_theme_option('https://laaventuradelheroe.es/curso/sport-talent')); ?>"><?php esc_html_e(' Subscribe','learn'); ?></a></p>
    <p class="btn-add"> <a href="<?php echo esc_url(learn_theme_option('link_sub')); ?>"><i class="icon-export-4"></i> <?php esc_html_e(' Subscribe','learn'); ?></a></p>
  •  514
    Ocean replied

    Hi,

    Did you add link in Theme Options?

    Attached files:  Theme Options ‹ zzzz — WordPress.png

  • gualde replied

    Yes, and still without work.

  •  514
    Ocean replied

    Hi,

    Please check again.

    https://laaventuradelheroe.es/cursos/

    Link of button Subscribe on this page is working fine now.

  • gualde replied

    Hi, I think that you don't understand me. 

    I suposse that this button can suscribe at the course that shows...If I do the configuration that you said, the page is reload. This problem aren't solved for me. If the button said "subscribe" this function should suscribe at the sensei course.

  •  514
    Ocean replied

    Hi,

    Sorry, it not subscribe at the sensei course. You have to add your link to this button.

    But you will try to solve this problem.

    Sorry again.