• Resolved gajannk

    (@gajannk)


    Hey.. Thankyou for this great plugin ๐Ÿ˜‰ Really nice..

    Iam having some trouble showing my custom css I have created for the table under Plugin Options and Custom CSS.. When I click the preview button for the table I can see my custom css, but when i view it in a post i cannot see it??

    http://wordpress.org/plugins/tablepress/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The reason for this can be that your theme overrides the “Custom CSS” again. Please post a link to the page with the table, so that I can take a direct look. Thanks!

    Regards,
    Tobias

    Thread Starter gajannk

    (@gajannk)

    Hey Tobias

    Thanks for ur quick reply.. Here is the link for the website..

    http://test5.easj.dk/tabel-test

    And when i update the CSS I also get this message..

    Options saved successfully, but โ€œCustom CSSโ€ was not saved to file.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for the link!

    From what I can see, this is probably caused by your theme. Can you please check if the file “header.php” contains a call to wp_head(); just before the closing </head> HTML tag? Also, the “footer.php” should contain a call to wp_footer(); just before the closing </body> HTML tag.

    Then, your theme also loads a very old and outdated version of the jQuery JS library, instead of using the one that comes with WordPress. This is ok now, but will lead to trouble later on. You should change that in the theme.

    About the message when saving the “Custom CSS”: The means that TablePress was not allowed to save the “Custom CSS” to a file (due to file access rights). This is okay, as the CSS will then be loaded directly, you will however not benefit from some performance gains that this can bring. You might therefore want to check the access rights to the “wp-content” folder on the server. This will then also allow you to perform automatic WordPress and plugin updates, which are probably not working at the moment, right?

    Regards,
    Tobias

    Thread Starter gajannk

    (@gajannk)

    Hey..

    I have checked the header.php and my footer.php for my theme, and i cannot find
    wp_head(); or wp_footer(); in the files.. Do I need to add them for the CSS to work or??

    I don’t know about the outdated version of the jQuery JS library, can you link me to a guide where it shows how I can use the one which comes with WordPress?? This is a theme a design company made for us, so we don’t know what they did and use on the theme..

    Yes you are correct i cannot update the plugins or WordPress directly from my WordPress site, and you are probably right, I will go down and talk to the IT People about my server permissions..

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, you should definitely add wp_head(); and wp_footer();, as many, many themes will not work otherwise.
    Those are PHP calls. To see how they are used, please see the source code of the files in the WordPress default themes, for example.

    For loading jQuery correctly, please see http://matthewruddy.com/using-jquery-with-wordpress/

    Now, as all of this is basically caused by a badly programmed theme, you should definitely contact that design company about this. As it seems, they are not very firm with WordPress theme programming…

    Regards,
    Tobias

    Thread Starter gajannk

    (@gajannk)

    Hey Tobias

    I have added wp_head(); and wp_footer(); for my current theme, and the table is working fine now ๐Ÿ˜‰ Thankyou..

    Thanks for the link i will follow the guide and make sure we are using the newest jQuery version..

    We know it was a mistake hiring that company to do your theme, but the contract was signed and we don’t have any contacts with them anymore, but you are right I don’t believe the company has any knowledge for designing WordPress themes..

    Thanks a lot for your help ๐Ÿ˜‰

    Have a nice day..

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! Great to see that everything is working now! ๐Ÿ™‚

    One more quick note: The theme even seems to be loading two copies of jQuery. One in the correct way (via functions.php) (but an outdated version from the Google CDN), and one even older one, probably hard-coded in the header.php.

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Thread Starter gajannk

    (@gajannk)

    Thanks i will look into it ๐Ÿ™‚

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    great! All the best for your project!

    Regards,
    Tobias

    Thread Starter gajannk

    (@gajannk)

    Thanks ๐Ÿ™‚

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    you are very welcome! ๐Ÿ™‚

    Best wishes,
    Tobias

    Hello Tobias,
    After reading all your responses above,mostly this one: “The reason for this can be that your theme overrides the “Custom CSS” again. Please post a link to the page with the table, so that I can take a direct look”

    FYI The theme Im using is Responsive, by CyberChimps.comVersion 1.9.3.9

    I’m working WordPress locally in my computer, so I asume you will not be able to take a look at the table?
    Any changes I try to do to the “Custom CSS” gives me the same error or comment “Options saved successfully, but โ€œCustom CSSโ€ was not saved to file”
    Sorry but I’m a newbie here, I come from MS Front Page, and this change is giving kind of a hard time

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The error “Options saved successfully, but โ€œCustom CSSโ€ was not saved to file” is not that critical. In fact, it is common on local installs, as the file permissions are sometimes very strict there.

    So, I suggest, that if you are having trouble, we wait until you have the site online/available on the internet, so that I can indeed take a look. That will be much better and faster for both of us, than having to do random guesses here.

    Regards,
    Tobias

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Custom CSS is not showing..’ is closed to new replies.