I would like to override custom user template in my Drupal 7 installation. The question is - should I edit the template file in the main module or copy the module to my theme's folder and edit it there? In case of the second option, how can I do it?
You should definitely create a subtheme to customize the look and feel. Otherwise, every time you upgrade core you will have to reapply your changes. You can subtheme the default Drupal 7 theme (Bartik) by following these steps.
Once you have done that, copy the user-profile.tpl.php file into your subtheme directory (/sites/all/themes/mytheme).
Finally, make the changes you want to make to user-profile.tpl.php
Related
I am working on a new project on WordPress.
I am developing a new website for a client based on their actual site (developed by an other team).
So, I decided to create a new WordPress theme and to use the existing content (client's request).
However, this supposes to reuse the custom plugins, in order to not re upload the pictures and the articles by hand.
I would like to include the custom plugins into the new theme. However, the plugins folder is outside the theme folder. So I was wondering if you have an idea on how I could transfer the code of a custom plugin into the new theme.
Thank you in advance.
What custom plugins are being used to handle pictures and articles? Uploaded files should go to /wp-content/uploads and all data is stored in the database. Removing the plugins might make the data inaccessible, but it shouldn't disappear.
Why are you moving functions from plugins to a theme? Or are these plugins inside of the /wp-content/themes/ folder? The way you handle the two cases is very different.
If you need to copy certain functions into a theme, you can move them into a functions.php file (or a functions.php file that calls to other files in that directory) in a child theme. The WordPress Codex has much better documentation on child themes than I could ever outline here. Placing the functions into your main theme is a permanent change and is not recommended when you're dealing with functions that are better-suited to plugins.
If you're copying plugins from one theme into another, you might want to look at plugin dependencies using TGM Plugin Activation.
in some case in drupal theme page I got themes for every module, what module or mmistake can did this?
Remove non-theme folders from sites/all/themes, /themes and sites/x/themes where x is the site name if you are running multisite structure.
That happens because themes and modules both have the same .info file structure.
Hey I accepted a drupal project, I am experience with PHP, HTML, but not so much Drupal. I am editing the look of the page. So not to much php is needed. However I was provided the ftp and site drupal admin. How do I go about editing css, as of now the ftp file are read-only, and I cannot edit them. Thank you.
Drupal works from themes.
ftp into your site
find the "themes" folder where you installed Drupal
each theme will be in it's own folder ie: garland, bluemarine etc.
open appropriate theme
depending on the theme you should see a style.css file
drag the file down, edit and put back online!
done!
Edit: also I should note, that if you are wanting to edit the CSS from the Drupal Admin it's really only supported on a per theme basis. So if that theme has this built in. I know some themes do, Fusion and Zen.
You should have an FTP write access. At least for sites/all/themes folder, where You should put Your custom theme.
I built a website with a menu using drupal.
My question is how do I change slightly the design?
Do I have access to the css files? where?
Can I change the design using drupal?
If you used the default Drupal menu, you'd need access to the file system, specifically your site's theme files, to update the design. If you used a core theme, the theme would be in a subdirectory of your site's /theme directory. If you used a contributed theme, your theme should probably be located in a subdirectory of /sites/all/themes.
If you're unable to access the files but can somehow install modules, the following modules may help somewhat:
Sweaver
Live Themer
I'm new to Drupal and have recently installed the custompage module. I received a lot of errors until I placed "custom.tpl.php" in the custompage module folder. I am able to navigate to the custom page from the primary links. But, the CSS I created for that specific page is not showing up. I'm thinking it's because "custom.tpl.php" is located in the module folder of Drupal Core and my CSS is in the theme folder. But I'm not sure how to fix the problem.
I tried to copy the "custom.tpl.php" in my themes folder, but then I receive a lot of errors.
Any help would be appreciated.
The problem is not the module. The css should be available to every page in your theme.
Make sure that your CSS file is mentioned in YOURTEMPLATE.info file (YOURTEMPLATE is the name of your template).
It should look like that:
stylesheets[all][] = YOURCSS.css
If your css file is in YOURTEMPLATE.info, try to clear drupal cache, go to admin/settings/performance and clear cache.