I'm trying to place my own theme settings into a drupal subtheme. i've used the forms API in theme-settings.php but they are not showing up in admin/build/themes/settings/$mytheme. my theme-settings.php is uploaded here in case you'd like to see it.
what it does is choose vocabularies for categories and tags, making it easier to port wordpress blogs to drupal.
so, the thing seems to be in mytheme.info
it seems i need to place a default value here in order to have the settings saved.
but i guess it doesn't make any sense.
Related
I'm new to wordpress, and I want to know if it is possible to put a theme bought on shapedtheme.com for example on an existing wordpress.
And if so, how to do it. I don't know where to put the code of the theme. I saw the wordpress page builder with text, but I see tags with [] and not <>.
I saw on this thread that pages can be linked to php files. I don't see how.
I have full access to the hosting service's filesystem and can see all wordpress files.
I would also like to transpose the theme header and footer and if possible, use the theme cards to adapt to blog articles written in wordpress.
How can I do this ?
I searched for tutorials on google or related threads on SO with no luck.
Any ressource would be appreciated.
Thanks to anyone who will take the time to read/answer this post.
No, you can't use a non-WordPress theme in a WordPress installation since WordPress will look for specific templates and pass certain objects to the template to be displayed.
You could adapt it to work with WordPress, though. Here's the theming guide to get you started.
But you'll probably be able to find a WordPress-ready theme with the features you want. This is the WordPress theme directory link for themes using bootstrap.
Unless you go for a from-scratch development of a pure php theme, and you need some level of theme customization I'd strongly suggest looking into child themes, as it'll allow you to update the base theme minimizing the changes you'd have to do to yours.
The [ ] syntax you mention are shortcodes, small, safe php functions that can be executed by inserting them in the editor, templates, etc, and provide kind of an api that exposes WordPress or plugins functionality.
And regarding your link, OP already has a WordPress theme, but is looking for a way of using a different, specialized template on specific pages. This template still has to follow to certain WordPress conventions.
I am trying to implement a simple one page -no blog- WordPress theme using a bootstrap template. I have an aside with three social links -facebook, twitter, Instagram- in the header.
I want to be able to make it so not only are these able to put truned on or off in by the user through the wp admin dashboard, but also the links to those sites able to be put in through said dashboard.
I am using udnerscores as a starter theme. How do I go about doing what I am looking to do?
This can be achieved using the Customizer API. That would be my recommendation. There is a lot of really good documentation on how to use that here. It also includes a whole bunch of sample code. Give that a look.
I am planning to make a website whose theme similar to Wattpad. I would like to know is there any Wordpress theme which is available like that? or having options like allowing users to write stories in my site as well get views and upvotes fo their posts.
I really need it. Thanks!
Themes are not supposed to include special functionality. They supposed to just be the look / style.
You'd need a plugin to show the views & upvotes. There are many of those.
An example It looks like https://fiftywordstories.com/ is running twenty-thirteen theme with a plugin - view source to see the plugin.
I am using a premium woocommerce theme.I don't like the position and look of the search-bar.Its tiny and I want to make it look like Google search-bar.So I want to change it.I don't know coding that well.What specific thing should I do to make it happen.What coding language I have to learn to do this?
If you are lucky the Premium WooCommerce theme which you have bought must have an option to add Custom Code(CSS) through the WordPress dashboard itself.
If not please go through the following procedure:
You can change the look and position of the WordPress searchbar using CSS. In order to add the CSS to your WordPress site you need to know basics of PHP how exactly WordPress works.
You need to enqueue style in theme's(Creating a child theme of your theme is more preferable to avoid the loss of code due to theme update) function.php file or using you own custom plugin.
Both these options are given in details in this link.
Languages you need to know:
PHP, CSS
You need not have to be master of PHP to do the changes just the basics of php is fine.
I created a drupal website in English, now i want to add an Arabic version to this site. I have added and enabled the i18n modules and now i have language switch options in my content creation and editing page in the admin.I want to show different themes for English and Arabic(for example mytheme and mytheme-ar). But how can i set drupal to show themes according to the URL , for example to show mytheme-ar, when the URL is example.com/ar and to show mytheme when example.com.
Can anybody suggest a solution? I have tried setting a cookie and setting the theme from includes/theme.inc according to the cookie. But I think there will be a more direct solution for this.
Take a look at the ThemeKey module. It can change the theme determined by complex (or simple) rules you create.