WordPress.org

Ready to get started?Download WordPress

Forums

oik
[resolved] Automatic PDF Icon (10 posts)

  1. dcttpnjba
    Member
    Posted 2 years ago #

    Hi,

    I've just installed Oik as part of using a cookie plug-in. As a result I'm now getting PDF icons appearing next to any pdf links on a page. Can anybody tell me how I can easily turn this off?

    Thanks
    David

    http://wordpress.org/extend/plugins/oik/

  2. bobbingwide
    Member
    Plugin Author

    Posted 2 years ago #

    Hi David, that's a feature of oik.
    see http://www.oik-plugins.com/oik-shortcodes/bw_pdf-list-attached-pdfs-shortcode/

    You can turn it of by creating some custom CSS that overrides its behaviour.

    Visit oik options > options to set a custom CSS file
    Type the custom CSS file name ( e.g. custom.css ) and Save changes
    Visit oik options > overview and click on the Edit Custom CSS link
    Insert this CSS
    a[href*='.pdf'] { background-image: none; padding-left: 3px; }

    Alternatively take a look at the link to see how I do the same sort of thing using the [bw_pdf] shortcode.

    Herb
    PS. In a future version of oik, the inclusion of oik's styling (oik.css and bwlink.css) will become optional.

  3. brewtal
    Member
    Posted 2 years ago #

    I hate that I got several things that I didn't want/need, like all those plugins that come with the base and also stuff like this. I added the css and still it doesn't work!

  4. peterarees
    Member
    Posted 1 year ago #

    I have the same problem. The custom css simply does not work for me, I have tried both:
    a[href*='.pdf'] { background-image: none; padding-left: 3px; } and
    div.noicon a[href*='.pdf'] { background-image: none; padding-left: 3px; }

    but it makes no difference. I use oik for cookie cat and privacy policy on numerous sites. The majority of these sites offer pdf downloads in lots of different ways, NONE of which require a mini pdf icon - in fact it simply detracts from the aesthetic in most instances.

    Can a fix be provided please, as the alternate is that I stop using oik because there are too many client complaints!

  5. bobbingwide
    Member
    Plugin Author

    Posted 1 year ago #

    Hi brewtal. In the next version of oik all the other plugins will relocate themselves to become separate plugins in their own right.... so eventually they will no longer be delivered in the oik base.

    peterarees can you give me an example of a site so that I can see the issue.
    The next version of oik is imminent. I was going to hold off making changes to the unwanted CSS. But now I've decided to include the changes in this version. Those changes will involve setting a specific class for each shortcode so that I no longer deliver generic CSS that can harm the theme.

  6. brewtal
    Member
    Posted 1 year ago #

    thanks for everything, great plugins, but please make them separate :)

  7. peterarees
    Member
    Posted 1 year ago #

    Hi bobbingwide

    Thanks for getting back on this. Unfortunately I have no examples left. In some instances I was calling a larger pdf icon, so was getting 2 icons, in these cases I have simply removed the larger icon. In other instances I resorted to using a download button, this was then corrupted with the mini icon as well as overriding the colour, so in this case I'm afraid oik got zapped.

    I really like the functionality you offer, but I simply haven't got the time to fiddle with 'rogue' behaviour.

    I will try again when the next version arrives.

    Peter

  8. bobbingwide
    Member
    Plugin Author

    Posted 1 year ago #

    Hi peter, I'm working on the problem right now.

    I would really appreciate it if you could produce an example of the problem on a site where you were unable to make override.css work. Otherwise I will not have any test data against which to validate the fix.

  9. peterarees
    Member
    Posted 1 year ago #

    Hi

    I understand your problem, unfortunately the site I was having the problem with is now live, and the pages with pdf downloads are all PPC campaign landing pages. If I reactivate oik it will corrupt the download buttons, and I have a very unhappy client.

    I will try to recreate it on a less sensitive site, but it won't be until next week sometime.

    Peter

  10. bobbingwide
    Member
    Plugin Author

    Posted 1 year ago #

    ok. I've been working hard on changing the oik.css file in the last couple of days, making the selectors more specific OR moving them to the bwlink.css file which will only be enqueued when the child plugin oik-bob-bing-wide is activated.

    If you could tell me the live site I should be able to recreate the problem in my own environment.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags