Support

Home Forums Event Espresso Premium Remove hyperlink for LearnDash associated course

Remove hyperlink for LearnDash associated course

Posted: November 12, 2020 at 5:40 pm


efirstaid

November 12, 2020 at 5:40 pm

Hi Guys,
Is there a way that I can remove the ASSOCIATED LEARNDASH COURSES from appearing in the ticket selector (SHOW DETAILS+) section?

If is cannot be removed altogether, is there a way to remove the hyperlink so customers cannot access it prior to buying a ticket?

Is there also a way to hide the SALES DATES in this section too?

THANKS SO MUCH.


efirstaid

November 12, 2020 at 6:51 pm

Hi again
I found some CSS code in another forum post which has successfully worked to hide the Sale Dates, but I would love some code to add to it to remove the Associated Courses details.
The code I used so far was:

/* Remove Sale Dates and Access sections from event details. */
.tckt-slctr-tkt-sale-dates-sctn,
.tckt-slctr-tkt-datetimes-sctn {
display: none;
}

Thanks


Tony

  • Support Staff

November 13, 2020 at 3:55 am

Hi there,

LearnDash themselves created the add-on for Event Espresso so generally, you would need to contact them for support with the add-on.

However, removing that section can be done with a snippet and I’ve added it to our code snippet library here:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/third-party-integration/add-ons/LearnDash/tw_ee_remove_ticket_selector_associated_courses.php

You can add that to a custom functions plugin on the site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


efirstaid

November 17, 2020 at 4:46 pm

Amazing thanks so much, that worked 🙂


Tony

  • Support Staff

November 18, 2020 at 2:38 am

You’re most welcome.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 2 weeks ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!