CSS location

CSS location, a forum discussion on Jojo CMS. Join us for more discussions on CSS location on our Themes Support forum.

Back to Forum Index : Back to Themes Support   RSS
karthik.ms

17 Dec 2007
Posts: 3

Hi

I installed jojo last week, and am very impressed with the cms's overall approach. Though i find lots of inconsistent documentation, i think jojo is going to make it big once these issues are addressed.

Here is my issue with CSS files. I read the docs on how jojo adds up all the styles required in a styles.css file.

I have installed jojo in the first recommended method. ie.
/jojo/
/mysite/
/www/

.. and have a css file inside an installed theme in the following location
/mysite/theme/theme_name/css/style.css

Contents of this never reflect when i access the website, surprisingly the css contents seems to be ignored.

It reflects if i paste it in the design css box (admin), but it fails saving such huge lines of css. Jojo saves only, if the length is half this.

How do i get my entire styles to be 'read'

Cheers


Harvey

Core Developer

Harvey

17 Dec 2007
Posts: 327

Hi, and thanks,

The CSS box in options is a VARCHAR(255) field, and will only take 255 characters. But no reason why we can't make this a TEXT type instead - I'll look into this.

It sounds like you are on the right track with the CSS, though it's /themes/ not /theme/ (assume this is a spelling mistake).

Firstly, see if the CSS file is being ignored, or just one specific style. It's most likely the file is being read, but the style you are trying to apply is being overridden by another style in one of the plugins. If you look at domain.com/css/styles.css you should be able to see the contents of your theme's style.css riht at the bottom. If this is the case, the file is being read properly but your styles are clashing with other styles.

The theme does need to be installed - and only one theme can be installed at any given time, so m ake sure the CSS file is in the active theme.

Also, you will need to do a full refresh of the page to view CSS pages (CSS is cached for performance) so make sure you have pressed CTRL-F5.

Sorry if these answers seem obvious. If the problem isn't one of these, please let us know the URL of the site and what specific styles you are trying to make appear.

Thanks,

Harvey.
karthik.ms

17 Dec 2007
Posts: 3

Harvey, thanks for the quick reply.

Yes, first few lines of the CSS read into the end of styles.css, yea, as you suggested, i guess its a css clash between styles.

The website is password protected until the launch. Is there a way to show a coming soon page by default, (i tried setting up an default.htm, but index.php overrides it) i can take the password off and send you the link if there is a way to do this.

Cheers
Harvey

Core Developer

Harvey

17 Dec 2007
Posts: 327

We normally run Jojo in a subfolder until we are ready to launch, then move the index / htaccess / config files into the webroot.

There are 4 things you need to change when moving Jojo from one place to another...

  • The rewritebase line in .htaccess
  • The SITEURL option in the database (edit the options table directly)
  • The webroot directory setting in config.php
  • And move the 3 files in the webroot. The Mysite folder shouldn't need to move.


Also, I'd recommend grabbing the latest dev copy of Jojo from snaps.jojocms.org - a lot of fixes and tweaks gone in there over the last week, so worth upgrading from Alpha3.

Cheers,

Harvey.
karthik.ms

18 Dec 2007
Posts: 3

Hi Harvey,

i am trying to move the files and change setting manually, i am afraid this wouldn't lead to a problem. I realised that the css from themes/[themename]/css/style.css is completely ignored. I have manually checked for css definition clash, seems there are none..

Any advice?

Cheers
Harvey

Core Developer

Harvey

18 Dec 2007
Posts: 327

Hi,

Could you please let us know the site URL and the styles that aren't sticking? I think we will get further with this knowing the specifics.

Either here or via the contact form if you want to keep things private.

Thanks,

Harvey.
arya arya

11 Mar 2010
Posts: 1

Hi Harvey

I`m new using jojo, quite impressive but when i customize the themes, is always return the default theme (refresh skin) is not 100% refresh.
then
i have modify customly all the CSS and TPL in every folder that contain CSS files.. but result the same even damage.

my struggle continue, i try to remove all the content of refresh skin in (jojo/themes/refresh) and I pasted other default themes(churchSite2) into the refresh folder, and other folder that contain that name.. but cannot too..

can u advise, ho to do modification jojo`s themes.
Rick Rick

11 Mar 2010
Posts: 336

Welcome to the forums.

Sounds like it's still using the cached files. Try forcing a refresh while looking at the public site. Eg CTRL+F5 (most browsers) or SHIFT+F5 (Chrome on Linux).
tom

Developer

tom

12 Mar 2010
Posts: 379

Webkit browsers (Chrome, Safari, Camino etc) don't do a proper force refresh, but IE or Firefox, using Rick's commands should do it.

If that still doesn't work, you can try deleting the [mysite]/cache folder and running setup
Rick Rick

12 Mar 2010
Posts: 336

One of the recent updates to the Dev channel of Google Chrome gave it a mostly workable forced refresh. I don't know when it'll make it to the stable build though.

I'm still waiting for App Tabs to arrive in the Linux builds after they took my precious pinned tabs away.
Back to Forum Index : Back to Themes Support   RSS
You must be logged in to post a reply



You need to Register or Log In before posting on these forums.