It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I wrote a rule for URL Rewrite and it works fine, but after I put it in place, the images in the pages no longer appear.
It's because you have addressed your images relatively, which means their addresses will be rewritten accordingly.
For example, if you page at /folder/page.html gets rewritten to /folder/pages/page and you have an image at image.png the browser will try to locate it at /folder/pages/page/image.png instead of /folder/image.png.
To avoid this, either address them using their absolute path, or use a rewrite condition that avoids rewriting URLs that point to existing files or directories.
Use a <base> tag in the head, to solve this problem.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have no idea what happened but basically my css stylesheet with 1000 lines has turned into a single line stylesheet.
Questions:
1) Why has it happened?
2) What can I do to revert it back as I don't have any recent backup.
Thank you
Must be because the program you are using ¿? has a CSS compressor somewhere...
Depending on to many things, you could get the original CSS file.
If you can't, try to beautify the compressed one.
Here you have a few online tools to do'it.
http://cssbeautify.com/
http://procssor.com/
http://www.codebeautifier.com/
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
When I first started learning front end development I used to see the first line comment
/* css document */
or something to that extent, I can't remember what it was...
I haven't used it recently. Is it even necessary anymore?
Was that just a dreamweaver thing?
Could having your first line of css as a comment be dangerous?
CSS doesn't need any declaration like HTML documents do need DOCTYPES (well they don't need them but it's highly recommended)
Having a comment as first line in your CSS isn't dangerous at all. (In fact WordPress themes requires this, but that's something completely else)
You never have. From what I recall, the first line css comment was a, somewhat unnecessary, feature of dreamweaver at some point. Its only purpose was to remind the user that they were writing a css file, which was only necessary because dreamweaver would automatically save the document as .css if you clicked New>CSS File.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Is there any way to hide css files on WP? I need to hide style.css file and file route.
Not only style but also need to hide other css file and their routes.
The fact is, any and all Style Rules are required to be either written directly to the document itself, or referenced in the head element in the form of a link tag.
There's no big secret to styling, so I'm not entirely certain why you would want to "hide" your stylesheet from prying eyes. Even if you were to create several hundred decoy CSS files and use cleverly placed #import rules to "confuse" somebody trying to find the actual filepath, what's to stop them from using a Web Inspector and seeing the active rules and the stylesheet in which they're contained?
Sorry to say, but you're pretty much going to have to deal with the fact that Style rules can be accessed by anybody.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm a bit new to wordpress plugin coding. I've been working on a plugin that will be very large, and contain many custom data structures.
I know this is a pretty general question, but I have a list of items (groups) on my options page. I'd like the entire options page to just use the settings api, but this list needs to have items added/edited/deleted from it. Does anyone have a good example of how to do this?
although I saw an exmple before - I can not remember where . But what I have tried to explain to you above is that first you need to add the elements using jQuery append like here : Dynamically adding HTML form field using jQuery then, for the options, just create an array, like here described here : http://wordpress.org/support/topic/dynamic-options .
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Firstly apologies I've re-edited this as the original was so vague.
What I have is a Drupal overlay which only displays a form. The issue is the overlay also displays the page header such as the logo and menu links. I don't want it to display this and was hoping someone could tell me how to prevent this without using CSS to hide the header div within that specific overlay, as although this is a temporary fix, is poor coding.
Thanks,
Rick
You can use drupal_get_form('form_id') to get the complete html of the form in a div and use css/js to get desired result.