Home Forums Archived Forums Weaver II Theme Weaver II Pro 3 css files loaded from different themes

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18203
    dsg257
    Participant

    My site works great as far a s I know but a problem with another plugin customising a file it  has  been pointed out that I am loading style sheets from  3 different themes

     I have a sub-theme which I use provincial-weaver-pro-sub-theme but css files a loading from 2 other theme locations

    ‘<link rel=’stylesheet’ id=’weaverii-main-style-sheet-css’  href=’http://www.pgracglasgow.co.uk/wp-content/themes/provincial-weaver-pro-sub-theme/style.css?ver=2.2.2&#8242; type=’text/css’ media=’all’ />
    <link rel=’stylesheet’ id=’weaverii-mobile-style-sheet-css’  href=’http://www.pgracglasgow.co.uk/wp-content/themes/weaver-ii-pro/style-mobile.min.css?ver=2.2.2&#8242; type=’text/css’ media=’all’ />
    <link rel=’stylesheet’ id=’weaverii-style-sheet-css’  href=’http://www.pgracglasgow.co.uk/wp-content/uploads/weaverii-subthemes/style-weaverii.css?ver=396&#8242; type=’text/css’ media=’all’ />’

    does this really matter and can it cause problems with other things

    the plugin I have a problem with is events-manager  I am trying to alter  a file contents and it must be saved in the plugins directory inside the theme folder

    eg. wp-content/themes/twentyten/plugins/events-manager/templates/when.php

    how can I load the css files from the child theme do I just copy them tho the directory or  something else

    Thanks

    #24306
    Weaver
    Keymaster

    That is the normal sequence of style sheets if you have a child theme.

    However, I don’t really believe what you’ve been told to do to create a sub-directory inside a theme directory could be correct. It is against all known good practice when creating WordPress plugins and themes.

    The main, and critical issue, is that as soon as you update the theme, all those changes in the plugins sub-directory will be deleted because the process for updating a theme or plugin will clear the previous directory. The normal practice for plugins and themes that need to create permanent auxiliary files it to put them elsewhere in the /wp-content directory. One common place is in the /uploads directory – as you can see in the third css file in your example: /wp-content/uploads/weaverii-subthemes/style-weaverii.css. That file is the CSS file generated by Weaver II based on the theme options you’ve set.

    So, you better contact the plugin authors to find out where to put your when.php file so that it won’t simply disappear, or require you to manually re-create it everytime you update the theme. And even though Weaver II is not being updated often, the newest WP 4.3 required an important compatibility update, so Weaver II was just updated this week.

    #24307
    dsg257
    Participant

    this is the link to  docs for the file structure to change a file for the plugin

    http://wp-events-plugin.com/documentation/using-template-files/  but I do get what you mean

    so in my subtheme can I just copy the css files from the other locations to my sub theme. will they will load from there

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘ Weaver II Pro’ is closed to new topics and replies.