renderinnovations 0 Report post Posted September 26, 2012 Hi! I'm working on a child theme, and am trying to figure out how to manipulate the site options dashboard so that one can select which preselected backgrounds they want. I figured out how to add colors such as for the nav bar and extend the color library from the dropdown menu given in the navbar section, however, it would be grand to be able to add backgrounds or shapes etc. Say I'm looking to be able to let people choose which background they want rather then them uploading it themselves. They have 5 choices, what would the less css be to call out a background? color and gradiency is easy, I don't know if I'm over looking this. Not sure if I can ask this here? Thanks, AB Share this post Link to post Share on other sites
catrina 103 Report post Posted September 26, 2012 I'm not certain this capability is possible with LESS CSS. It's sounds like a job for a CSS solution. Please see here so that you can get an idea: http://bloggerstop.net/2009/10/dynamic-css-click-to-change-for-blogger.html Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
evan 0 Report post Posted October 1, 2012 AB, I'm confused. Are you looking to add a style that dictates the background for the site or the navbar? If you're just asking about LESS, there's no special code for handling background images, you can just use CSS in your child theme's style.less file or wherever you're using it. Share this post Link to post Share on other sites
Rob 547 Report post Posted October 1, 2012 Renderinnovations, the ability to add a drop down list with a specified list of pre-selected backgrounds is something that could be handled by one of our Pros. It's not the sort of thing we could provide help with in the forum. I do not believe this to be a CSS solution as CSS will not create drop down lists or other types of optional choices. Yes, it can style them, but creating them is a function of PHP and thus needs a coder experienced with our framework. Please see http://www.pagelines.com/pros Former PageLines Moderator, Food Expert and Raconteur Share this post Link to post Share on other sites
renderinnovations 0 Report post Posted October 2, 2012 @Evan: It's to allow people to select which background they want for the site itself. The goal is to create an options in pagelines "site options" for them to select a background rather than uploading one themselves. @Rob: Yes it would be more php, but you can mix in less css with the coding. That is how the navbar (for example) is made because it uses selectors to call out a list of different type of gradient backgrounds in the less.css file. So that's why I was wondering, if I create the php functions, which I can do, if I would need to have it call the css file to backgroud: url(' domain location of img'); etc Php creates the drop down, but requires css to create the background images. Right? Just trying to figure a solution to this. Share this post Link to post Share on other sites
Rob 547 Report post Posted October 2, 2012 Yes, you can create various styles that call specific backgrounds. But creating the proper code in functions.php so that your users can make the selection is something we just cannot provide support for in this forum. That's what takes a Pro. Done wrong, you could take down your entire site. Additionally, this may require editing of core files so a Pro needs to help with ensuring those files are copied and applied properly, so that future updates don't wipe out your work. Former PageLines Moderator, Food Expert and Raconteur Share this post Link to post Share on other sites