Forums

  • # February 5, 2013 at 5:25 am

    I am using compass and sass for my wordpress project where the css file style.css is sibling to images folder. But the relative path isn’t seem to be working here. I am missing all the images that has been created with sprite.
    I am trying since a 2 days and still no solution.
    Any help will be greatly appreciated.

    # February 5, 2013 at 5:26 am

    We’d need to see a link to the site.

    # February 5, 2013 at 5:33 am

    Here is the url

    http://www.apprs.com/onlinecamp/

    # February 5, 2013 at 5:37 am

    you can see that the paths are in the format of “../images/spr-s33303ddf86.png”

    but i want in
    “images/spr-s33303ddf86.png”

    # February 5, 2013 at 6:52 am

    relative_assets are in true, so the format is in the form of “../images/” but my images folder and css file style.css is sibling to each other so i need a path format like “images/” without ../ you see? ..

    # February 5, 2013 at 7:37 am

    its set to images_dir = “images”
    please help me. its a common wordpress format and it shouldn’t so hard…

    # February 5, 2013 at 8:04 am

    actually am working in localhost. How can i show you my config.rb codes can give me any idea.

    # February 5, 2013 at 8:34 am

    config.rb : http://snipt.org/zOhj0
    style.sass http://snipt.org/zOib7

    # February 5, 2013 at 9:05 am

    Your are awsome. Thanks :) a very very very thanks. The below code was moving the style.css from its css directory to one step back. I removed the code and change the css_dir to ‘.’ ITS FIXED . Thank you again.. :)
    I set it up by myself. i found a post on css-tricks.

    require ‘fileutils’
    on_stylesheet_saved do |file|
    if File.exists?(file) && File.basename(file) == “style.css”
    puts “Moving: #{file}”
    FileUtils.mv(file, File.dirname(file) + “/../” + File.basename(file))
    end
    end

    But Would you mind telling me how to mark it as solved. :(

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag