Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Phil Ewels

    (@tallphil)

    Hi Andy,

    I’m a bit confused – do you mean the “HTML before title” etc. fields? I just had a go and copied your code into these fields and they seemed to show in the resulting page html. I then tried again with the bootstrap glyphicons (<span class="glyphicon glyphicon-search" aria-hidden="true"></span>) and that also worked fine and showed up.

    Is this what you mean?

    Phil

    Thread Starter studio4

    (@studio4)

    Hi Phil,

    That’s weird, on my installation when I click save on the settings page the Custom prev button class & Custom next button class fields go blank. It’s like the settings engine is not able to commit those changes to the database. All the other fields work fine but clicking save with those fields populated returns the settings page with them blank. Perhaps it’s just my installation, although I’ve no idea why this would be I’ve not made any changes to the code.

    The fields are:
    id=”customprev” name=”cptbc_settings[customprev]”
    id=”customnext” name=”cptbc_settings[customnext]”

    Plugin Author Phil Ewels

    (@tallphil)

    Apologies, I should really have read your original post more carefully. Yes, the customprev and customnext fields do scrub HTML, the ones I tested (HTML before / after) do not.

    It’s not possible to keep HTML in the customprev and customnext fields because this content is printed as a class attribute within the previous and next buttons:

    <a [..] data-slide="prev"><span class="<?php echo $atts['customprev'] ?> icon-prev"></span></a>

    I think you should get the effect you’re looking for by saving fa fa-angle-right in these fields?

    Phil

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fontawesome icons’ is closed to new replies.