Am using a bootstrap theme for a website am developing and i want to start adding content on Pages. Is there a way I can add my own custom page without using Basic pages in drupal or Can I still work with Basic pages and come up with a custom page?
Drupal provides a way to override themes. You can override bootstrap theme by using subtheme. Bootstrap theme provides a subtheme(starterkits) and follow below steps.
You can follow steps in below link to override the bootstrap theme using subtheme.
How to Create a Drupal 8 Bootstrap Subtheme
If is it is drupal 6 or drupal 7 you can override page.tpl.php.
copy file in bootstrap folder theme/bootstrap/templates/node copy file--> node.html.twig
first create a content type like ' event' then create folder templates/node
pest file in bootstrap child folder theme/bootstrap_child/templates/node pest file-->put file node--event.html.twig
in file we write custom code :)
Related
I had 2 custom templates I used in core/bartik theme which got deleted after I updated drupal core.
Is it possible to "protect" those templates from being deleted?
Make your own theme. Inherit some existing theme if you don't want to start from scratch. Then copy existing templates to your theme and change them the way you like. Never change Drupal core files, including themes.
By changing core files you made updates almost impossible.
If you don't want to create your own theme or sub theme from scratch you can make Bartik to be your own custom theme by just placing coping of to live inside /theme directory.
So now you will have 2 "Bartik" themes
Drupal core's one in
/core/themes/bartik
and yours in
/theme/bartik
In this case drupal will use the copy inside /themes/barik
But, if doing so, it is highly recommended to go another step and rename your copy of the Bartik to be something like "My Bartik" by
Edit the theme name inside bartik.info.yml
Perform search/replace in all theme files of "bartik" into "my_bartik" (machine name).
Replace "bartik" also in file names.
Rename the theme directory to be your new custom name (machine name).
I typically design and build using Bootstrap with a simple text editor. As far as I can see it is not possible to directly add a new HTML page to WP. Is there anyway to integrate bootstrap cleanly to WP?
Thanks
Just create a Custom Template that holds your HTML, then in the WP Backend create a new page and select the desired template. Here are the docs
This should answer your question on how to add new HTML Pages. "Integrating Bootstrap cleanly" extends to using it in the theme of course.
There is a stater theme underscores
first consider using the stater themes, there is a stater theme __tk
that is developed by extending underscores theme , so you can use this to start developing wordpress+bootstrap site, theme, templates etc.
The template i want to convert is:
http://www.dragdropsite.com/demo/mpurpose-free-multipurpose-twitter-bootstrap-3-template/
it has multiple stylesheets and wordpress doesnt recognise the theme when places in wp-content/themes/ folder
What are the steps involved to convert it?
I wouldn't call it 'converting'. Wordpress themes are not just a simple html/css/js folder structure on the themes folder. Making a website work with wordpress is more involved than that. If you want to do it yourself you will need some experience with PHP. Wordpress's templating system is not very hard to learn but it won't happen on one sit.
I suggest you to take a look at this place so that a skilled person can do it for you
Click here to check envato studio.
I am in the same opinion with alejandrocavazos. While, it is not easy to create a wordpress theme, converting an existing bootstrap theme will be very difficult too.
But i have an idea. Find a similar wordpress theme. Save it with another name. Page by page edit the theme and copy/paste your theme's content into this wordpress theme. If you make the changes directly on a web server, you can see the changes realtime. I think this is the easiest way to do it.
Good luck.
Yes you can do that, but its quite difficult to convert entire HTML theme into wordpress directly. You need some basic understanding of wordpress and how it works.
There are some good articles available, please go through them. You will surely understand it well and will be able to convert your HTML into wordpress.
I assume here, you are using Bootstrap framework to design your static websites.
1. How to Build a Responsive WordPress Theme with Bootstrap
2. How to convert a Bootstrap site template into a WordPress website
3. Creating a WordPress Theme From Static HTML
To Convert a Bootstrap 4 Template to a Wordpress Theme there is some work involved and there is no easier way to do in few clicks.
Start by using a starter theme such as Underscores.
-> Migrate your assets (js/css) from static template to the wordpress starter theme directory.
-> Start moving your page sections one by one (header, nav, page sections etc.)
-> To have more control from Wordpress dashboard, make use of plugins like Advanced Custom Fields, Custom Post Type UI and Contact Form 7.
For Detailed Tutorial you check out the Tutorial in this link
https://www.5balloons.info/convert-bootstrap-4-templates-wordpress-themes/
i would like to use a css file in drupal 7 for a specific page and i would like to cancel the default theme for this page.
I use the method called drupal_add_css it's working but this method doesn't permit to cancel the defautl theme
Help
You can use the Themekey module to configure which theme is displayed for which page. If you set the theme for the page you want to cancel the default theme for to Stark (the no-frills no-style theme included as part of core in D7), you will be able to use just your css via drupal_add_css().
I cannot change the css theme of my Drupal View. This is a screenshots of the settings:
http://dl.dropbox.com/u/72686/viewTheme.png
I've tried all buttons, I cannot save the new theme (BlueMarine) in the preferences. It is stuck on Zen (which is my front-end theme).
thanks
That dropdown in the image you link to is only showing you what the appropriate template files are in each theme. If you want advanced theming you could use something like http://drupal.org/project/themekey, or customise an existing theme.
What you see there is not a setting to change the theme of the view, but a tool to see what template files views can find and will use. You can use it to figure out what to name your template files you want to use for overrides. Views let you select which theme you want to see what template files will be used. The label also explains what it is used for very well: Theming infomation. It also states that
This section lists all the possible templates...