• Resolved kbtwen

    (@kbtwen)


    Hi,
    I have installed lifterlms launchpad, but I have some problems about functions.php in the lifter launchpad theme.

    The functions I created could not work as expected.

    For example:
    1. I created my own wp_head function as below to load css, but it didn’t load the functions.
    function add_css_head() {
    if (!is_user_logged_in()) { //if not logged in
    ?>
    <style>
    .btn-forside {
    display: none !important;
    }
    </style>

    <?php

    } else { //if logged in
    ?>
    <style>
    .reg-forside {
    display: none !important;
    }
    </style>

    <?php
    }
    }
    add_action( ‘wp_head’, ‘add_css_head’ ,10);

    2. The page turned out to be blank, because “the_content” function didn’t return the content I added as below:
    add_filter(‘the_content’, ‘add_content’);
    function test_add_content($content)
    {
    return $content.”test add content”;
    }`

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @kbtwen,

    Since you’ve purchased a LaunchPad through LifterLMS.com please open a new support request from your LifterLMS.com account dashboard.

    WordPress does not posting in these forums for commercial products.

    We are definitely happy to help! Just head on over to your LifterLMS account and submit a support request from your account dashboard.

    Best,

    Thread Starter kbtwen

    (@kbtwen)

    Hi,
    I tried to submit a support request but it says “In order to respond to this thread you must be eligible for LifterLMS Premium Support.”

    Is there anyway I can do it in my account dashboard?

    Best

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘functions.php in lifter launchpad theme’ is closed to new replies.