• Resolved muchfun

    (@muchfun)


    Hi, Anders –
    I use Eksell and export my site to a static version (security, speed) using SimplyStatic. Everything works pretty well, except one thing:
    In the static version the content filter is not clickable. OnClick leads to an underlined link, but the link is not being opened. When I remove the class “filter-link” in the HTML, everything works fine.
    So my question is, is there a possibility within WordPress to disable the CSS class, preferably using the customizer?
    Thanks in advance, Michael

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @muchfun,

    This sounds like a JavaScript issue. You can’t change the class name of an element in the Customizer, unfortunately. You can do so in the theme editor, but any changes you make will be overwritten the next time Eksell is updated.

    Your best bet is to create a child theme and modify the class of the element either with one of the filters (better) or by plugging the function outputting the filter (worse). You can find information about child themes here: https://developer.www.ads-software.com/themes/advanced-topics/child-themes/

    — Anders

    Thread Starter muchfun

    (@muchfun)

    Hi @anlino,
    thanks for the quick answer.
    I agree, it is a JavaScript issue. But I am not sure how a child theme can help, because the mentioned class is being built within the construct.js dynamically. Therefore there exists no static file where I would be able to change the class name or delete the class (as far as I understand the theme files). So I have to edit the construct.js in the child theme, right? Not sure whether I am able to do that ??
    Thanks, Michael

    Theme Author Anders Norén

    (@anlino)

    Hi @muchfun,

    The filter-link class isn’t built in construct.js, but in the eksell_the_archive_filter() function in template-tags.php. You can replace the function by copy-pasting the entire function to a functions.php file in a child theme, and change filter-link to something else there.

    The class name isn’t used in the CSS files, so it should look exactly the same.

    — Anders

    Thread Starter muchfun

    (@muchfun)

    Hi @anlino,
    thank you very much for your help! Your suggestion does the trick ??

    How about a flat white as a thank you ?

    Michael

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘content filter, disable class “filter-link”’ is closed to new replies.