• Hi,

    I’ve been battling to move the altered default css to the theme css.

    Just so that everything is in one place, and when changing the site’s colour scheme I don’t have to go through the several plugin’s css files.

    I succeeded for all except the network latest posts.

    Can I somehow easily turn the css off and make it listen to the theme css ?
    I tried the deque function and even removing the reference to the default css, adding the altered code to the theme css but nothing seems to work. So far.

    kind regards

    Nick

    http://ww.wp.xz.cn/extend/plugins/network-latest-posts/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jose Luis SAYAGO

    (@iluminatus)

    Hi Nick,

    That’s actually a good idea, you made me realize there isn’t a simply way to achieve this. However, I’ve tweaked the source code to allow you to unload NLPosts’ stylesheets by setting css_style to none.

    As this is a quick fix it hasn’t been pushed to the public repository yet. I plan to include it into the next major release. Until then, please download and replace your actual single-latest-posts.php by the one found here > single-latest-posts.php.

    Then in your shortcode set the parameter:

    [nlposts css_style=none]

    Please let me know if it works as expected.

    Cheers.

    Thread Starter nessler

    (@nessler)

    It works like a charm, brilliant !

    Just one more question though, I have the plugin working through a widget.
    So the widget already shows exactly what I want how I want it. In my case the latest news item.

    Is there a way to include it in the widget too, or do I need to use the shortcode and start rebuilding the layout from there ?

    I added the shortcode as a widget below the nlp widget and it also disables the css from the nlp widget as well, so it is working like a charm.

    Moving the altered default css and including the code in the theme css is not working at the moment, but that is probably due to the fact that it is in a widget so I’ll start working on that.

    Many thanks for this great plugin, you deserve a medal 😉

    Plugin Author Jose Luis SAYAGO

    (@iluminatus)

    Hello Nick,

    I’m glad it is working as expected. You don’t need to do anything extra for the widget to work, just make sure you set the Widget field Custom CSS Filename to none and that’s it. Both shortcodes and widgets use the same function.

    Of course, if you use multiple widget or shortcode instances you must set css_style or Custom CSS Filename to none for each one of them to avoid the plugin including the default stylesheet.

    Thanks for your feedback!

    Cheers.

    Thread Starter nessler

    (@nessler)

    Hi,

    still have some css problems but I’m not too far away now.

    When I use the widget, I would like to style by using an aside id tag.
    As it is at the moment I simply can’t figure out how to make up the css.

    If I use the shortcode tag and use it as a text widget, I do get the aside id tag which makes it easier to manipulate in css for me, however, the text looses it’s paragraphs, enters etc. It looses the lay out and the text is displayed one word and line after another.

    If you know where to look for this, or what is the easiest way I’m open to suggestions. But I think this is a wordpress related thing, not just something with the plugin…

    Anyway, you can have a peak here if you want to
    http://www.fortherestless.com/lab/

    EDIT:

    I took a chance and used a shortcode not in the list, which worked.
    Instead of auto_excerpt=true I used display_content=true, which displays the full post including the layout.

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

The topic ‘Move the css to the theme css’ is closed to new replies.