Samuel
Forum Replies Created
-
Thank you,
I just pasted in the WordPress CSS editor the following, from the code you suggested:
#purposes-content-container .purposes-header h1.purposes-header-title { font-size: 20px !important; }and it worked a charm!
Maybe you should add this somehow to the advanced guide. Thanks again.
In the cookie solution embed code “applyStyles”:false has only worked for me inside “banner”:{ … }, where it erases the CSS successfully but inside the banner brackets only affects the banner, not the pop-up/iframe with the preferences for the user to choose.
If I place “applyStyles”:false, outside “banner”: {} it doesn´t do anything.
Is there a specific place to place it outside the “banner” or in a way that affects the preferences’ pop-up?
@thimpress The image you provided isn´t highlighted.
This is an example of what code syntax highlighting looks like https://miro.medium.com/max/1400/1*8DbEBAv_L1pK-1Xm03XEzw.png
That is the feature that plugins like “Prismatic” or “Code Block Syntax” provide for example to teach coding. Those plugin work outside of Learnpress, but not in LP lessons.Nevertheless, @trieuthan92 I mentioned the way I solved that using that other plugin that overrides LP, but it doesn´t have themes as Prismatic, but you can write CSS if you want it to look different.
https://meerkatstatistics.com/courses
When COURSES page is open:
<li id="menu-item-2522" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2522"><a href="https://meerkatstatistics.com/courses/" class="ct-menu-link">Courses</a></li>When other link (ABOUT) in the menu is open:
<li id="menu-item-2521" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-42 current_page_item menu-item-2521"><a href="https://meerkatstatistics.com/about/" aria-current="page" class="ct-menu-link">About</a></li>In the courses page, LP deletes the classes: “current-menu-item page_item page-item-42 current_page_item” that allows to -in this case- change the color of the word courses, when that page is open.
- This reply was modified 3 years, 8 months ago by Samuel.
As mentioned, it is the WordPress code block -like add header block, or paragraph block-.
Thankfully the plugin “Syntax-highlighting Code Block (with Server-side Rendering)” overrides Learnpress CODE block, and bridges Learnpress CODE Block classes deletion, allowing code highlighting.