Code Monkey home page Code Monkey logo

enfold-library's Introduction

Enfold WordPress Theme Code Snippet Library

This is a community-maintained repository of code snippets that help modify the default behavior of our Enfold WordPress Theme.

Snippets are organized into categories (folders) and each snippet is placed in its own file with a name that describes what it does.

Using Snippets

Most files in this library are set up to be WordPress plugins:

  1. Click on the filename of the snippet you'd like to use. Each file is set up to be a WordPress plugin.
  2. Click the "Raw" button (next to "Blame" and "History") at the top right.
  3. Save the page from your browser to your wp-content/plugins folder and upload to your server. Be sure to save it as a .php file and add it to a folder with the same name as the file (minus the .php). Alternatively you can compress the file as a .zip file and upload as a plugin from within WordPress.
  4. Activate the plugin from the WordPress plugins page.

For files that aren't set up as plugins follow steps 1 and 2 above and then copy and paste the code into your child theme's functions.php or place inside a custom functionality plugin.

If you need help customising any of the snippets or do not understand how to use them, please let us know in the Support Forum and we will try to help.

Submitting Your Snippet

We welcome and encourage everyone to submit their code snippets. If you would like to submit your snippet, please fork the repository and then create a pull request.

Please refer to the Contributing guidelines before submitting your pull request.

Proposing a Snippet

If there is a snippet you are unable to find and would like to propose get written, please open a thread in our support forum and describe your need. Please be aware that we can only help with small snippets (a few lines of code) - if you need something more cpmplicated it might be necessary to hire a developer for this.

Online Resources from Third Party Developers

Notes

These snippets come with no guarantees. Due to the constant evolution of the Enfold Theme codebase, it is possible that the behavior of these snippets may change overtime. Find something broken? Let us know!

enfold-library's People

Contributors

basilakis avatar davidsteinbauer avatar graphitivity avatar iismaell avatar inoplugs avatar johntorvik avatar kriesi avatar mgmason avatar vatoyiit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

enfold-library's Issues

Problem with calculating prices.

Hi. i've got a problem with enfold-library/compat/dokan/products/new-product.php file
There is a problem that i don't know how to fix:

I'm not sure why but this line doesn't seem to calculate a price of product for me.

                                            <span class="vendor-earning">( <?php _e( ' You Earn : ', 'dokan-lite' ) ?><?php echo get_woocommerce_currency_symbol() ?><span class="vendor-price">0.00</span> )</span>
                                            <div class="dokan-input-group">

I have a question, is it possible to add stock quantity manage to new-product.php file?
When i'm trying to copy-paste inventory from new-product-single.php it doesn't work for me. Seems like it's only connected with editing page of a product and i don't know how to modify that to adding product page.
Here's what i tried:
new-product.zip

Any help would be greatly appreciated!

Translation of ###91### inti [ doesn't work

Hi,

I have the enfold theme installed. And I have created an Email-Formular. The subject of the email to be sent should start with [SEMM]. Therefore, I escaped the characters with ###91### and ###93###. But when I send the mail, the result in my inbox is like this:


###91###SEMM###93### Frage an den Support

What is the problem with my config?

Best Regards
Dreibaer

AviaHtmlHelper display_image method update request for better SVG support

Hello!

Just a little request to improve svg compatibility when using Image type elements, on AviaHtmlHelper display_image method (/config-templatebuilder/avia-template-builder/php/html-helper.class.php:2355), there's regex match that handles the popup backend preview rendering of the image:

if(preg_match('/^.*\.(jpg|jpeg|png|gif)$/i', $img))

Can svg be added to regex match, like:

if(preg_match('/^.*\.(jpg|jpeg|png|gif|svg)$/i', $img))

That way if a svg image is uploaded it will appear in the popup preview, and also allowing for its removal.

Screen Shot 2020-05-09 at 1 32 13 PM

Thanks!

Consecutive Iconlists with custom colors set will cause broken HTML output (PHP 7.2)

Hey,

On a PHP 7.2 install, the following shortcode tree will result in broken HTML:

[av_iconlist position='left' iconlist_styling='' animation='' custom_title_size='' custom_content_size='' font_color='' custom_title='' custom_content='' color='custom' custom_bg='' custom_font='#83a846' custom_border='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' av_uid='av-juhr14kp' admin_preview_bg='']
[av_iconlist_item title='List Title 1' icon='43' content='Enter content here' link='' linktarget='no' linkelement='' av_uid='av-n6747'][/av_iconlist_item]
[/av_iconlist]

[av_iconlist position='left' iconlist_styling='' animation='' custom_title_size='' custom_content_size='' font_color='' custom_title='' custom_content='' color='custom' custom_bg='' custom_font='#eeee22' custom_border='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' av_uid='av-juhr14kp' admin_preview_bg='']
[av_iconlist_item title='List Title 1' icon='43' content='Enter content here' link='' linktarget='no' linkelement='' av_uid='av-n6747'][/av_iconlist_item]
[/av_iconlist]

Renders (on second iconlist):
Screen Shot 2019-04-14 at 9 54 54 PM

Fix is to reset the iconlist's object styling properties before return $output on 600:

$this->icon_html_styling = '';
$this->title_styling = '';
$this->content_styling = '';

return $output;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.