Support » Plugin: WP Photo Album Plus » Trying to use custom CSS and "@import_url"

  • Resolved taeke63

    (@taeke63)


    Hi

    I am trying to customise my WPPA slideshow a bit. Want to add a background image, but this can’t be done.

    To prevent from having to copy all my changes every time a new version of the plugin appears, I thought to be clever, and create a copy of the “wppa-style.css” in my custom theme and use

    @import url("../../plugins/wp-photo-album-plus/theme/wppa-style.css");

    Followed by custom CSS.

    However, WPPA keeps trying to load the original CSS-file in the plugin folder. Am I doing something wrong? Is there a workaround?

    http://wordpress.org/extend/plugins/wp-photo-album-plus/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Make a copy of your wppa-style.css and put it in your theme directory.
    If wppa+ finds it there, that copy is loaded, and not the one in the plugin directory.

    Modify the copy in the theme directory, and it will not be overwritten at an update.

    For more info see: http://wppa.opajaap.nl/customizing-wppa/modifying-css/

    Hi opajaap

    Thank you for your reply. I have done this before, and it works fine, however I was thinking along the line of using the same trickery as a WordPress Child Theme (), which I was hoping would be possible with WPPA.

    (dutch)
    Bedankt voor je antwoord. Ik heb dit voorheen gedaan, en dat werkt prima, maar ik zat te denken in de richting van Child Themes, waarbij ik gewoon kan updaten, de oorspronkelijke (mogelijk gemodificeerde) wppa-style.css vanuit de plug-in/theme in mijn “child wppa-style.css” inlaad (via de import_url), waar dan vervolgens mijn wijzigingen overheen gaan.
    Dit heeft als voordeel dat ik niet steeds de nieuwe wppa-style.css met de oude moet vergelijken, om dan de wijzigingen weer in mijn kopie moet laden.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    However, WPPA keeps trying to load the original CSS-file in the plugin folder

    You may put an empty ( dummy ) file in your theme dir. This will satisfy wppa+

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trying to use custom CSS and "@import_url"’ is closed to new replies.