I use GregwarCaptchaBundle to generate captcha in Symfony 2.3.2.
But I don't know how to custom theme for it, I don't want to use the default theme, it wasn't fit with my template. I can edit the default its theme, but I think it's not a good idea, because we can't reuse for many template.
Can somebody tell me how to do it. Thanks very much.
Override like any other view in Symfony.
Create file app/Resources/GregwarCaptchaBundle/views/captcha.html.twig
And put down your changes following this template.
Related
I am beginner to Drupal-8, I don't know how to create custom template file for particular design for particular page.
For Example,
If I have created bellow pages in Drupal-8 and I want each of the page's custom template,
Like :
Home
About Us
Services
Contact Us
So for this how can I create custom template? Please anyone help me out to how can I achieve this?
Heyo!
So, Drupal page templating is managed through TWIG templates in your theme. You should first create a custom theme, which you can do following this guide:
https://www.drupal.org/docs/8/theming
Once you have a theme, you can create .twig files that will provide you with the means to control the html structure of the pages. Specific instructions are in this guide here:
https://www.drupal.org/docs/8/theming/twig/working-with-twig-templates
For example, creating a custom front page involves creating this file page--front.html.twig in your /templates folder. Different pages will require ovverides based on their name or node which is detailed in the above guide. However, it most likely is best practice to use a page.html.twig file to set a default style for the pages of your site and not have custom overrides for each node.
If you're new to twig, here's a link to twig tutorials. It's very simple and nice-and-easy to use!
https://symfonycasts.com/screencast/twig/basics
Drupal Website Design is Theme Based. There are plenty of themes to install in the Drupal.org. Seeing the particular theming documentation you can know how to customise your design.
You can look into some theming tutorials available in youtube also.
i want show all row of table of my plugin in plugin page.
they are many and for show as standard i want use edit.php of wordpress style how do this.
Should I only use WordPress CSS classes?
exactly like this picture
You are looking for the WP_List_Table class, many plugins extend this class to create their own WP looking admin tables. I've done this myself on some projects and it's doable.
PLEASE NOTE, See the following WP notice:
This class's access is marked as private. That means it is not
intended for use by plugin and theme developers as it is subject to
change without warning in any future WordPress release. If you would
still like to make use of the class, you should make a copy to use and
distribute with your own project, or else use it at your own risk.
WP_List_Table info here.
Using WP_List_Table in your own plugin, info here.
Regards, Bjorn
I want to change admin theme in wordpress. I have created a simple admin theme plugin (including CSS and js files) to change some simple CSS, however, there are some layout page need to be totally changed. I am wondering if anyone can help me to find an easy to change the whole layout theme without changing source code. Is it possible to overwrite the layout in the admin theme plugin? If yes, how to do it?
You should create "Theme Option Page" instead of creating plugin for Theme setting like colors and other style in wordpress ! For reference :
https://codex.wordpress.org/Creating_Options_Pages
It will be best option as per my experience in wordpress !
I have a wordpress website which includes a member area to allow each user to edit his profile.
For this member area, I found these bootstrap templates that would be perfect for what I need.
http://themeforest.net/item/caplet-admin-responsive-html-theme-/6537086
http://themeforest.net/item/webarch-responsive-admin-dashboard-template/6157416
So, I wanted to know if it's possible to convert or use in some way these templates on wordpress ?
Since I already use a wordpress theme, it would be easier to include the bootstrap template as a plugin, do you think it's possible ?
I also heard of child themes features on wordpress but don't know much about it, do you know if it could be a solution ?
Thanks !
You would have to use those templates and custom make your own theme, which is not an easy task. Themeforest has some nice themes for wordpress based on bootstrap. I would check those out instead.
I need to edit an invoice template in Drupal (both php template and css).
I've copied pasted the file in my theme folder, as I usually do to override for blocks and pages templates, but it didn't work.
This is the template customer.itpl.php inside Ubercart/uc_orders/templates folder.
How can I override it without hacking the ubercart module ?
thanks
This template is not the normal Drupal template. In order to change it, you should create a copy of the template in the same folder (Ubercart/uc_orders/templates) and make your changes. It will show up as an option in the settings page (/admin/store/settings/orders/edit) where you specify which template to use for showing the invoice.
devel_themer is good at providing template suggestions for you. Sometimes modules uses a special naming convention.
If that doesn't help you can add your own template suggestion in a preprocess function for the template. See this post on d.o for more info.
According to the ubercart docs you should be able to specify which template files you want to use.