• Resolved onirgoc

    (@onirgoc)


    Hello,

    some problems with relative path:

    The default css template is here:

    <link rel=’stylesheet’ href='<?php echo PDF_PLUGIN_URL .’initialisation/template.css’; ?>’ type=’text/css’ />

    but if you try to create a new css template with a relative path upper than the plugin directory it doesn’t work. Best to replicate is to duplicate template.css in the plugin folder and so the adress should be:

    <link rel=’stylesheet’ href='<?php echo PDF_PLUGIN_URL .’../template.css’; ?>’ type=’text/css’ />

    …but doesn’t work !

    Did I miss something ?

    https://ww.wp.xz.cn/plugins/gravity-forms-pdf-extended/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter onirgoc

    (@onirgoc)

    Solution :

    <link rel=’stylesheet’ href='<?php echo (get_bloginfo(‘stylesheet_directory’) . ‘/pdf/template.css’); ?>’ type=’text/css’ />

    Thanks to me…hahaha… 😉

    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    Glad you were able to solve the issue.

    For the record the PDF_PLUGIN_URL refers to the /wp-content/plugins/gravity-forms-pdf-extended directory. So even if you used a ../ to go back a directory you are only refering to the /wp-content/plugins folder.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘css relative path’ is closed to new replies.