WordPress.org

Forums

Enlighter - Customizable Syntax Highlighter
[resolved] Install new theme (5 posts)

  1. stefandunn
    Member
    Posted 1 year ago #

    Hi,

    I am trying to create a new theme, Monokai, but am not sure where to upload the .css file. I have uploaded it into views > themes but it doesn't show in the drop-down menu.

    Could you let me know the best way of doing this? Also, the Theme Customiser does not allow you to modify the background colour of the code when not in RAW-Mode.

    Thanks,
    Stefan

    https://wordpress.org/plugins/enlighter/

  2. Andi Dittrich
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Stefan,
    well the plugin is not designed to upload custom themes yet. The css files in the views/ directory are special templates wich are used to generate custom themes - changing these files will cause an unexcepted behaviour.

    the currently best option is the following:
    1. Instead of using the naming-scheme **_your_theme_name**EnlighterJS for the CSS classes, just use **EnlighterJS** - this will overwrite all theme settings
    2. Add your Enlighter-Theme manually to your WordPress Theme as well as the EnlighterJS base styles
    3. Go to the Enlighter Settings Page -> CDN
    4. Deactivate the CSS Loading Checkbox

    i will try to add an option to the next release which allows the use of custom themes (maybe an additional direcetory) and take a look onto the theme-customizer to check the background-color-issue.

    thank's for your contribution & best reagards,
    Andi

  3. stefandunn
    Member
    Posted 1 year ago #

    Okay, thanks for the quick reply. Another thing I noticed is that code does not wrap unless there is whitespace in the code's line. I noticed that white-space:pre-wrap was used so it should, but for some reason it isn't. Any idea's?

  4. Andi Dittrich
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    i've added an option to the upcoming release v2.3 to add custom themes: you have to create a directory named enlighter/ into your WordPress' theme directory. All CSS files into these "magic" directory are handled as themes and will be added to the dropdown-menus.

    Currently, i can't reproduce your described word-wrap behaviour - everything works as excepted within the testcases - maybe another stylesheet overrides the EnlighterJS styles ? Maybe you could provide a testcase ?

    best reagrds, Andi

  5. Andi Dittrich
    Member
    Plugin Author

    Posted 9 months ago #

    fyi: External theme support is available in Enlighter v2.3

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic