Currently I've started working in moodle. But I have some confusion, how do I create a custom theme.
I designed a new template using html & Css. But I don't know how to migrate with moodle. I tried something in google. But I cant find a good solution.
Please can anyone provide me details to do this in moodle.
My problem is that I don't know how to add my custom HTML/JS with a custom theme setting.
Moodle version is 2.8.3.
Thank you, if you can provide me with any guidelines and references for solving this problem.
Related
I have a WordPress site, and I teach python on it and I want to share some code on it. I want a code editor that users can see my code and run it.
Please if you know any plugin that can do this help me.
I really do not think that there is such kind of a plugin available as of now. However, you can always search for such a plugin inside the official WordPress plugin repository.
Still, my recommendation would be to consider building your custom website ( not based on WordPress at all ) in order to achieve that using a different application or framework that has already developed a tool for that purpose.
I am using Kirki framework to develop a WordPress theme. After completing the theme I tested my theme using theme check plugin. It throws an error
More than one text-domain is being used in this theme. This means the theme will not be compatible with WordPress.org language packs.
The domains found are myTheme, kirki.
I ignored this issue and submitted my theme to themeforest.net but the review team asked me o solve this issue. Is there anyway i can solve this issue.
Any help would be appreciated. Thanks in advance ;)
This is the answer which I got from the support person.
Ideally you wouldn't be including kirki in your theme... You can instead require its installation as a plugin. This way your users will also get any future bugfixes and improvements simply by updating the plugin.
If you don't want to do that and insist on including Kirki in your theme, then there's nothing to worry about...
Kirki has a separate implementation for localizations when used inside a theme: https://github.com/aristath/kirki/blob/develop/l10n.php
The WPTRT team is aware of that and in fact the textdomain is whitelisted when submitting a theme in wordpress.org for exactly that reason (hybrid-core is another one that is whitelisted because they both use the same implementation).
You can point this out to the theme reviewer and link to this thread here, if there any more questions from them I would be more than happy to answer them.
If you don't want to do that either, then you can just manually go through the files and change all 'kirki' textdomains to your own.
I'm developing webpage which should have Wordpress backend. I'm coder, but I've never developed Wordpress template.
Do you know any theme based on fullpage.js, which I can modify ... and learn from it ?
Thank you!
As detailed in the fullPage.js website and its docs, here's one you can use. From Themify.
You might find another one at the resources section of the docs.
I apologize if this has been asked before, but after doing some research, I could not find any resources answering this specific question of mine.
I'm trying to use the Redux framework in my WordPress theme. I used the builder to get started, which is linked to on the plugin page. I customized my framework there and chose the option of "embed only" (Embed Only: TGM is not used and Redux is embedded within the theme/plugin). I also exported as a custom theme, which uses Underscores. As a result, I now have admin directory inside of my theme, with an "options-init.php" file in it. I've been modifying this file to add my options. Is this right? In the documentation it mentions to look for a sample-config.php file, and to copy that and modify it, but I can't find that anywhere. I want to make sure I'm doing this right before I get too far and find an issue.
Also, how do I make sure the framework stays up to date with the latest security patches? Is it a better idea to install it as a plugin rather than embed it in the theme itself?
Lead dev of Redux Framework here. It is very much a better idea to run Redux via a plugin if you want your users to have security updates.
Another option is to embed redux, but to use TGM to suggest for users to install the plugin. This way your theme is not dependent on Redux, but the moment they install the plugin, that version of Redux will take over.
It's up to you, but the plugin is the way to go.
I have been developing plugins for WordPress. Most plugin I have developed with two three classes and not so huge like Buddypress, WooCommerce or etc.
I am planning to make two open source plugins to deliver some sort of complex system (detail can't share you at the moment but later during the development) where other developers can customize functions and system for them need same as Buddypress and WooCommerce.
As I check those plugins files and realize they have register them own action and filters which developers can modify as per them need. But my problem is unable to understand completely how I should write the plugin where other developer have flexibility to override plugin function as well as they can add them own.
I know it is difficult to give definite answer but I need some sort of start-up guide so I can go into right direction. Do I need to register my action and filters? If yes how to do? if not than how can I do?
Your hint will help me a lot... Thanks a lot
You can check WordPress-Plugin-Boilerplate, it should get you started on the right path.
It may be useful to use wp-cli for generate plugin like so:
wp scaffold plugin my-plugin
Or using "WordPress Plugin Boilerplate" for more complex works: https://wpbp.github.io/wiki.html