GithubHelp home page GithubHelp logo

Comments (5)

ahoiroman avatar ahoiroman commented on August 18, 2024

Hi,

Did you choose the nodes where the assets should be inserted?

from pagekit-assets.

ahoiroman avatar ahoiroman commented on August 18, 2024

I created a little demo screencast on how to use JS/CSS and node selection:

2017-11-15 08 03 14

I also tried to override the shariff-styling:

bildschirmfoto 2017-11-15 um 08 12 48
bildschirmfoto 2017-11-15 um 08 12 55

from pagekit-assets.

humantex avatar humantex commented on August 18, 2024

I have visibility set for 'all pages'. I'm posting some cropped screen-grabs to show the settings page for the widget and asset, and one is a view page source for the site.

On the widget setup... on the settings tab is just the name (labeled, Share), set to enabled, and loaded in the 'footer' section of the theme. None of the 'overwrites' are ticked. Visibility tab is set for 'all pages'. The theme tab is:

spqr-assets-settings-3

For the asset... Visibility is also 'all pages' - w/ the settings tab as:

spqr-assets-settings

And the view source for the site...

spqr-assets-settings-2

Here's the site link with everything still in place if you want to see how it renders... https://enami.lumiworx.com

Shariff is loaded below everything else within the footer section of the widget list, and in the visual order it appears on the page. The CSS 'link href' from Assets never gets inserted below the line for Sheriff, and I've tried it as both an inline setting and save-as-file. The result is the same... it's always next-to-last in the header order of references, and always above Sheriff... so obviously if it's not below it, it will never override it.

If it matters, I've cloned the Avion theme from pagekit.com, and customized the css to suit my own taste.

from pagekit-assets.

ahoiroman avatar ahoiroman commented on August 18, 2024

Hm... I don't get your point. It's not a bug of this extension, as I can not change the order of style or scripts using the helper Pagekit provides.

As you see, your content is being inserted inline:

<style>shariff-button a {
border-radius: 10px 10px 10px 10px;
-moz-border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
}</style>

So what you can do: Overwrite it with !important, if necessary, as I've shown in my screenshot.

There's also an error I guess. It has to be .shariff-button a - you just wrote shariff-button a.

bildschirmfoto 2017-11-15 um 13 35 34
bildschirmfoto 2017-11-15 um 13 35 26

from pagekit-assets.

ahoiroman avatar ahoiroman commented on August 18, 2024

I am going to close this issue, as there is no bug in spqr/assets. If you need more help using the extension or with css, please use https://pagekit-forum.org .

If you are sure that this is a bug, please reopen.

from pagekit-assets.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.