Viewing 30 results - 5,251 through 5,280 (of 11,212 total)
  • Author
    Search Results
  • #886585
    larineka
    Participant

    On my product pages, the Add to basket button is at the bottom of the page.
    Can it be moved to the top? Also can it display Incl. VAT? And how Can I add tabs ? Basically I’d like it to look like this page which was done on another site using Enfold

    Thanks!

    #886495
    This reply has been marked as private.
    #886337
    richbernstein1
    Participant

    I am having a problem adding the Whatapp icon to show in the social profile.
    I’ve followed the instructions in multiple threads:

    https://kriesi.at/support/topic/adding-whatsapp-button-on-social-share-buttons/#post-573570
    https://kriesi.at/support/topic/add-whatsapp-icon/#post-532969
    https://kriesi.at/support/topic/add-whatsapp-icon/
    https://kriesi.at/support/topic/insert-code-above-in-social-links/

    Why are there so many variations on the functions.php code for adding an icon? It makes what should be a simple process very frustrating.

    I was able to successfully upload the Fontello Whatsapp font using the Iconfont Manager and have tested to make sure it is visible in the font list using an Icon Box in the layout Builder.

    Here’s the code I added to functions.php in a child theme:

    
    /* add support for whatsapp icon */
    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['Whatsapp']	 = array( 'font' =>'whatsapp', 'icon' => 'ue800');
    	return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    
    // Add new icon as an option for social icons
    function avia_add_custom_social_icon($icons) {
    	$icons['Icon Label'] = 'Whatsapp';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    

    Despite trying several option outlined in the above posts, I am unable to see the Whatsapp icon appear in the Social Profile dropdown list.

    Would someone please review the code and make corrections in this post so that other can learn? Thanks.

    #885860

    In reply to: Form Styling Help

    Thanks @victoria, The only remaining things I need is the form to be centered on desktop and the submit button wider with larger text to mach the enfold styles.

    Please Advise, that should be it after these things!!

    #885331

    Any mods / enfold devs know how to filter down a product list to load only simple products? Right now I can load a list of all products to pick from, but for some of the needs I have to further refine some of these elements I’d like to limit what is listed to simple products only. For instance, the “add to cart” buttons and “gift wrap” elements are only going to work for a simple product. Right now the list shows all using the following code…

    array(
    		"name" 	=> __("Which Product?", 'avia_framework' ),
    		"desc" 	=> __("Select which product should be added to the cart.", 'avia_framework' ),
    		"id" 	=> "link",
    		"type" 	=> "select",
    		"taxonomy" => "single",
    		"subtype" => "product",
    		"multiple"	=> 6
    		),
    #884583
    kelsangchodor
    Participant

    Dear Sir,
    With respect to this enfold theme webpage:

    On the second slide on the top layerslider – the top button/text moves outside the vewing port on responsive.
    The slide is set to “responsive” in the settings and when I view it within layslider preview there isn’t a problem.
    But when it’s view on a mobile device the top button disappears outside of the viewing port.
    Any ideas why this might be? The responsive doesn’t seem to work very well.
    I set the dimensions 1500 x 500 and “responsive”
    Thanks so much for any advice on this,
    Best Wishes,
    Christopher Skelton.

    #884344

    Topic: Fatal error

    in forum Enfold
    ctancrede
    Participant

    Following the attempt to update the theme (which is not working), I have the following error :

    Fatal error: Call to undefined method aviaShortcodeTemplate::__destruct() in /var/www/vhosts/kyramedias.com/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/audio-player.php on line 53

    Here is the css of audio-player :

    <?php
    /**
    * Audio File Playlist Element
    *
    * Shortcode that allows to add a playlist
    *
    * @since 4.1.3
    */
    if ( ! defined( ‘ABSPATH’ ) ) { exit; } // Exit if accessed directly

    if ( ! class_exists( ‘avia_sc_audio_player’ ) )
    {

    class avia_sc_audio_player extends aviaShortcodeTemplate
    {
    /**
    *
    * @since 4.1.3
    * @var int
    */
    static protected $instance = 0;
    var $extra_style = “”;
    var $non_ajax_style = “”;

    /**
    *
    * @since 4.1.3
    * @var array
    */
    protected $atts;

    /**
    *
    * @since 4.1.3
    * @param AviaBuilder $builder
    */
    public function __construct( $builder )
    {
    parent::__construct( $builder );

    $this->atts = array();
    }

    /**
    *
    * @since 4.1.3
    */
    public function __destruct()
    {
    parent::__destruct();

    unset( $this->atts );
    }

    /**
    * Create the config array for the shortcode button
    *
    * @since 4.1.3
    */
    public function shortcode_insert_button()
    {
    $this->config[‘name’] = __( ‘Audio Player’, ‘avia_framework’ );
    $this->config[‘tab’] = __( ‘Media Elements’, ‘avia_framework’ );
    $this->config[‘icon’] = AviaBuilder::$path[‘imagesURL’] . “sc-audio-player.png”;
    $this->config[‘order’] = 60;
    $this->config[‘target’] = ‘avia-target-insert’;
    $this->config[‘shortcode’] = ‘av_player’;
    $this->config[‘shortcode_nested’] = array( ‘av_playlist_element’ );
    $this->config[‘tooltip’] = __( ‘Add an audio player element’, ‘avia_framework’ );
    $this->config[‘tinyMCE’] = array( ‘disable’ => “true” );
    $this->config[‘drag-level’] = 3;
    $this->config[‘preview’] = false;
    }

    /**
    * Popup Elements
    *
    * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
    * opens a modal window that allows to edit the element properties
    *
    * @since 4.1.3
    * @return void
    */
    function popup_elements()
    {
    $this->elements = array(

    array(
    “type” => “tab_container”,
    ‘nodescription’ => true
    ),

    array(
    “type” => “tab”,
    “name” => __( “Playlist” , ‘avia_framework’ ),
    ‘nodescription’ => true
    ),

    array(
    “name” => __( “Autoplay”, ‘avia_framework’ ),
    “desc” => __( “Choose if the player starts on pageload or has to be started manually”, ‘avia_framework’ ),
    “id” => “autoplay”,
    “type” => “select”,
    “std” => ”,
    “subtype” => array(
    __( ‘Start manually’,’avia_framework’ ) => ‘manual’,
    __( ‘Start on pageload’,’avia_framework’ ) => ‘autoplay’
    )
    ),

    array(
    “name” => __( “Playlist Order”, ‘avia_framework’ ),
    “desc” => __( “Here you can select how to sort the playlist when rendering to the player on each pageload.”, ‘avia_framework’ ),
    “id” => “playorder”,
    “type” => “select”,
    “std” => ”,
    “subtype” => array(
    __( ‘Use order of playlist as selected’,’avia_framework’ ) => ‘normal’,
    __( ‘Shuffle the playlist randomly’,’avia_framework’ ) => ‘shuffle’,
    /*__( ‘Reverse the playlist’,’avia_framework’ ) => ‘reverse’*/
    )
    ),

    array(
    “type” => “modal_group”,
    “id” => “content”,
    ‘container_class’ =>”avia-element-fullwidth avia-multi-img”,
    “modal_title” => __(“Edit Form Element”, ‘avia_framework’ ),
    ‘modal_open’ => ‘no’,
    ‘trigger_button’ => ‘avia-builder-audio-edit’,
    “add_label” => __(“Add single audio”, ‘avia_framework’ ),
    ‘disable_manual’ => ‘yes’,
    “std” => array(),

    ‘creator’ => array(
    “name” => __( “Create and Edit Audio Playlist”, ‘avia_framework’ ),
    “desc” => __( “Here you can add new audio files to the playlist, remove files or reorder them.”, ‘avia_framework’ ),
    “id” => “id”,
    “type” => “audio_player”,
    ‘state’ => ‘avia_insert_multi_audio’,
    “title” => __( “Add/Edit Audio Files”, ‘avia_framework’ ),
    “button” => __( “Insert Audio Files”, ‘avia_framework’ ),
    “std” => “”
    ),

    ‘subelements’ => array(

    array(
    “type” => “tab_container”, ‘nodescription’ => true
    ),

    array(
    “type” => “tab”,
    “name” => __( “Content Audio” , ‘avia_framework’ ),
    ‘nodescription’ => true
    ),

    // Dummy element only to avoid notices
    array(
    “name” => __(“Which type of media is this?”,’avia_framework’ ),
    “id” => “audio_type”,
    “type” => “select”,
    “std” => “audio”,
    “subtype” => array(
    __( ‘Audio File’, ‘avia_framework’ ) => ‘audio’,
    __( ‘Video File’, ‘avia_framework’ ) => ‘video’,
    )
    ),

    array(
    “type” => “close_div”,
    ‘nodescription’ => true
    ),

    array(
    “type” => “close_div”,
    ‘nodescription’ => true
    ),

    ), // subelements

    ), // modal_group

    array(
    “name” => __(“For Developers: Section ID”, ‘avia_framework’ ),
    “desc” => __(“Apply a custom ID Attribute to the section, so you can apply a unique style via CSS. This option is also helpful if you want to use anchor links to scroll to a sections when a link is clicked”, ‘avia_framework’ ).”<br/><br/>”.
    __(“Use with caution and make sure to only use allowed characters. No special characters can be used.”, ‘avia_framework’ ),
    “id” => “id”,
    “type” => “input”,
    “std” => “”
    ),

    array(
    “type” => “close_div”,
    ‘nodescription’ => true
    ),

    array(
    “type” => “tab”,
    “name” => __( “Layout” , ‘avia_framework’ ),
    ‘nodescription’ => true
    ),

    array(
    “name” => __( “Player styling”, ‘avia_framework’ ),
    “desc” => __( “Here you can select the general appearance of the player”, ‘avia_framework’ ),
    “id” => “player_style”,
    “type” => “select”,
    “std” => ”,
    “subtype” => array(
    __( ‘Classic (boxed)’, ‘avia_framework’ ) => ‘classic’,
    __( ‘Minimal (borderless, no background)’, ‘avia_framework’ ) => ‘minimal’,
    )
    ),

    array(
    “name” => __( “Choose a Cover Image”, ‘avia_framework’ ),
    “desc” => __(“Either upload a new or choose an existing image from your media library”, ‘avia_framework’ ),
    “id” => “cover_id”,
    “fetch” => “id”,
    “type” => “image”,
    “title” => __(“Choose a Cover Image”, ‘avia_framework’ ),
    “button” => __(“Choose a Cover Image”, ‘avia_framework’ ),
    “std” => ”
    ),

    /*
    array(
    “name” => __( “Cover Image Location”, ‘avia_framework’ ),
    “desc” => __( “Here you can select where to show the cover for larger screens. On mobile devices the image will be centered above the player by default.”, ‘avia_framework’ ),
    “id” => “cover_location”,
    “type” => “select”,
    “std” => ‘top left’,
    “subtype” => array(
    __( ‘Hide the cover image’, ‘avia_framework’ ) => ‘hide’,
    __( ‘Show above player left aligned’, ‘avia_framework’ ) => ‘top left’,
    __( ‘Show above player centered’, ‘avia_framework’ ) => ‘top center’,
    __( ‘Show above player right aligned’, ‘avia_framework’ ) => ‘top right’,
    __( ‘Show left of player’, ‘avia_framework’ ) => ‘aside left’,
    __( ‘Show right of player’, ‘avia_framework’ ) => ‘aside right’
    )
    ),

    array(
    “name” => __( “Cover Image Size”, ‘avia_framework’ ),
    “desc” => __( “Choose image size for your cover.”, ‘avia_framework’ ),
    “id” => “cover_size”,
    “type” => “select”,
    “std” => “thumbnail”,
    “required” => array( ‘cover_location’, ‘not’, ‘hide’ ),
    “subtype” => AviaHelper::get_registered_image_sizes( array(), false, true )
    ),

    array(
    “name” => __( “Playlist styling”, ‘avia_framework’ ),
    “desc” => __( “Here you can select the styling of the playlist”, ‘avia_framework’ ),
    “id” => “playlist_style”,
    “type” => “select”,
    “std” => ‘light’,
    “subtype” => array(
    __( ‘Light’, ‘avia_framework’ ) => ‘light’,
    __( ‘Dark’, ‘avia_framework’ ) => ‘dark’
    )
    ),

    */

    array(
    “name” => __( “Tracklist”, ‘avia_framework’ ),
    “desc” => __( “Here you can select to show or hide the tracklist”, ‘avia_framework’ ),
    “id” => “tracklist”,
    “type” => “select”,
    “std” => ‘show’,
    “subtype” => array(
    __( ‘Show tracklist’, ‘avia_framework’ ) => ‘show’,
    __( ‘Hide tracklist’, ‘avia_framework’ ) => ‘hide’
    )
    ),

    array(
    “name” => __( “Tracknumbers”, ‘avia_framework’ ),
    “desc” => __( “Here you can select to show or hide the tracknumbers next to entries in the playlist”, ‘avia_framework’ ),
    “id” => “tracknumbers”,
    “type” => “select”,
    “std” => ‘show’,
    “required” => array( ‘tracklist’, ‘equals’, ‘show’ ),
    “subtype” => array(
    __( ‘Show tracknumbers’, ‘avia_framework’ ) => ‘show’,
    __( ‘Hide tracknumbers’, ‘avia_framework’ ) => ‘hide’
    )
    ),

    array(
    “name” => __( “Artists Name”, ‘avia_framework’ ),
    “desc” => __( “Here you can select to show or hide the artists name in the playlist”, ‘avia_framework’ ),
    “id” => “artists”,
    “type” => “select”,
    “std” => ‘show’,
    “required” => array( ‘tracklist’, ‘equals’, ‘show’ ),
    “subtype” => array(
    __( ‘Show artists name’, ‘avia_framework’ ) => ‘show’,
    __( ‘Hide artists name’, ‘avia_framework’ ) => ‘hide’
    )
    ),

    array(
    “name” => __( “Media Icon/Album Cover”, ‘avia_framework’ ),
    “desc” => __( “Here you can select to show or hide the media icon in the playlist. This icon can be set in the media gallery for each element as the featured image. WP will use a default icon on upload, if none is set.”, ‘avia_framework’ ),
    “id” => “media_icon”,
    “type” => “select”,
    “std” => ‘show’,
    “subtype” => array(
    __( ‘Show media icon/album cover’, ‘avia_framework’ ) => ‘show’,
    __( ‘Hide’, ‘avia_framework’ ) => ‘hide’
    )
    ),

    array(
    “type” => “close_div”,
    ‘nodescription’ => true
    ),

    array(
    “type” => “tab”,
    “name” => __( “Colors” , ‘avia_framework’ ),
    ‘nodescription’ => true
    ),

    array(
    “name” => __( “Font Color”, ‘avia_framework’ ),
    “desc” => __( “Select a font color”, ‘avia_framework’ ),
    “id” => “font_color”,
    “type” => “select”,
    “std” => “”,
    “subtype” => array(
    __( “Default Color”, ‘avia_framework’ ) => ”,
    __( “Custom Color”, ‘avia_framework’ ) => ‘custom-font-color’
    )
    ),

    array(
    “name” => __( “Custom Font Color”, ‘avia_framework’ ),
    “desc” => __( “Select a custom font color for your Player here”, ‘avia_framework’ ),
    “id” => “custom_font_color”,
    “type” => “colorpicker”,
    “std” => “”,
    “rgba” => true,
    “required” => array( ‘font_color’, ‘equals’, ‘custom-font-color’ )
    ),

    array(
    “name” => __( “Background Color”, ‘avia_framework’ ),
    “desc” => __( “Select a background color”, ‘avia_framework’ ),
    “id” => “background_color”,
    “type” => “select”,
    “std” => “”,
    “subtype” => array(
    __( “Default Color”, ‘avia_framework’ ) => ”,
    __( “Custom Color”, ‘avia_framework’ ) => ‘custom-background-color’
    )
    ),

    array(
    “name” => __( “Custom Background Color”, ‘avia_framework’ ),
    “desc” => __( “Select a custom background color for your Player here”, ‘avia_framework’ ),
    “id” => “custom_background_color”,
    “type” => “colorpicker”,
    “std” => “”,
    “rgba” => true,
    “required” => array( ‘background_color’, ‘equals’, ‘custom-background-color’ )
    ),

    array(
    “name” => __( “Border Color”, ‘avia_framework’ ),
    “desc” => __( “Select a border color”, ‘avia_framework’ ),
    “id” => “border_color”,
    “type” => “select”,
    “std” => “”,
    “subtype” => array(
    __( “Default Color”, ‘avia_framework’ ) => ”,
    __( “Custom Color”, ‘avia_framework’ ) => ‘custom-border-color’
    )
    ),

    array(
    “name” => __( “Custom Border Color”, ‘avia_framework’ ),
    “desc” => __( “Select a custom background color for your Player here”, ‘avia_framework’ ),
    “id” => “custom_border_color”,
    “type” => “colorpicker”,
    “rgba” => true,
    “std” => “”,
    “required” => array( ‘border_color’, ‘equals’, ‘custom-border-color’ )
    ),

    array(
    “type” => “close_div”,
    ‘nodescription’ => true
    ),

    array(
    “type” => “tab”,
    “name” => __(“Screen Options”,’avia_framework’ ),
    ‘nodescription’ => true
    ),

    array(
    “name” => __( “Element Visibility”,’avia_framework’ ),
    “desc” => __( “Set the visibility for this element, based on the device screensize.”, ‘avia_framework’ ),
    “type” => “heading”,
    “description_class” => “av-builder-note av-neutral”,
    ),

    array(
    “desc” => __( “Hide on large screens (wider than 990px – eg: Desktop)”, ‘avia_framework’ ),
    “id” => “av-desktop-hide”,
    “std” => “”,
    “container_class” => ‘av-multi-checkbox’,
    “type” => “checkbox”
    ),

    array(

    “desc” => __( “Hide on medium sized screens (between 768px and 989px – eg: Tablet Landscape)”, ‘avia_framework’ ),
    “id” => “av-medium-hide”,
    “std” => “”,
    “container_class” => ‘av-multi-checkbox’,
    “type” => “checkbox”
    ),

    array(
    “desc” => __( “Hide on small screens (between 480px and 767px – eg: Tablet Portrait)”, ‘avia_framework’ ),
    “id” => “av-small-hide”,
    “std” => “”,
    “container_class” => ‘av-multi-checkbox’,
    “type” => “checkbox”
    ),

    array(
    “desc” => __( “Hide on very small screens (smaller than 479px – eg: Smartphone Portrait)”, ‘avia_framework’ ),
    “id” => “av-mini-hide”,
    “std” => “”,
    “container_class” => ‘av-multi-checkbox’,
    “type” => “checkbox”
    ),

    array(
    “type” => “close_div”,
    ‘nodescription’ => true
    ),

    array(
    “type” => “close_div”,
    ‘nodescription’ => true
    ),

    );
    }

    /**
    * Editor Element – this function defines the visual appearance of an element on the AviaBuilder Canvas
    * Most common usage is to define some markup in the $params[‘innerHtml’] which is then inserted into the drag and drop container
    * Less often used: $params[‘data’] to add data attributes, $params[‘class’] to modify the className
    *
    *
    * @since 4.1.3
    * @param array $params this array holds the default values for $content and $args.
    * @return $params the return array usually holds an innerHtml key that holds item specific markup.
    */
    function editor_element($params)
    {

    $element = $this->get_popup_element_by_id( ‘autoplay’ );
    $playmodes = $element[‘subtype’];

    $update_template = ‘<span class=”av-player-{{autoplay}}”>’;

    foreach( $playmodes as $info => $playmode )
    {
    $update_template .= ‘<span class=”av-play-‘ . $playmode . ‘”>’ . $info . ‘</span>’;
    }

    $update_template .= ‘</span>’;

    $update = $this->update_template( ‘autoplay’, $update_template );

    $selected = empty( $params[‘args’][‘autoplay’] ) ? ‘manual’ : $params[‘args’][‘autoplay’];
    $template = str_replace(‘{{autoplay}}’, $selected, $update_template );

    $params[‘innerHtml’] = “config[‘icon’] . “‘ title='”.$this->config[‘name’] . “‘ />”;
    $params[‘innerHtml’].= “<div class=’av-player’>” . $this->config[‘name’] . ‘ – <span ‘ . $update . ‘”>’ . $template . “</span></div>”;
    return $params;
    }

    /**
    * Editor Sub Element – this function defines the visual appearance of an element that is displayed within a modal window and on click opens its own modal window
    * Works in the same way as Editor Element
    *
    * @since 4.1.3
    * @param array $params this array holds the default values for $content and $args.
    * @return array the return array usually holds an innerHtml key that holds item specific markup.
    */
    function editor_sub_element( $params )
    {

    $img_template = $this->update_template( “img_fakeArg”, “{{img_fakeArg}}” );
    $title = $this->update_template( “title_info”, “{{title_info}}” );
    $artist = $this->update_template( “artist”, “{{artist}}” );
    $album = $this->update_template( “album”, “{{album}}” );
    $description = $this->update_template( “description”, “{{description}}” );
    $filename = $this->update_template( “filename”, “{{filename}}” );
    $id = $this->update_template( “id”, “{{id}}” );
    $filelength = $this->update_template( “filelength”, “{{filelength}}” );

    $title_info = isset( $params[‘args’][‘title’] ) ? $params[‘args’][‘title’] : ”;
    $thumbnail = isset( $params[‘args’][‘icon’] ) ? ‘‘ : “”;
    $album_info = isset( $params[‘args’][‘album’] ) && ‘undefined’ != $params[‘args’][‘album’] ? $params[‘args’][‘album’] : ”;
    $desc_info = isset( $params[‘args’][‘description’] ) && ‘undefined’ != $params[‘args’][‘description’] ? $params[‘args’][‘description’] : ”;
    $file_info = isset( $params[‘args’][‘filename’] ) && ‘undefined’ != $params[‘args’][‘filename’] ? $params[‘args’][‘filename’] : ”;
    $id_info = isset( $params[‘args’][‘id’] ) && ‘undefined’ != $params[‘args’][‘id’] ? $params[‘args’][‘id’] : ‘0’;

    $main = ‘<span class=”avia-audiolist-title” ‘. $title . ‘>’;

    if( isset( $params[‘args’][‘title’] ) && ‘undefined’ != $params[‘args’][‘title’] )
    {
    $main .= ‘<span class=”avia-known-title”>’ . $params[‘args’][‘title’];
    }
    else
    {
    $main .= ‘<span class=”avia-unknown-title”>’ . __( ‘ Unknown ‘ , ‘avia_framework’ );
    }
    $main .= ‘</span></span>’;

    /**
    * Currently WP does not return artist when editing an existing playlist in popup playlist editor.
    *
    * This might change in future -> then uncomment the following lines to show the artist
    */
    // $main .= ‘<span class=”avia_audiolist-by”>’ . __( ‘ by ‘ , ‘avia_framework’ ) . ‘</span>’;
    //
    // if( isset( $params[‘args’][‘artist’] ) && ‘undefined’ != $params[‘args’][‘artist’] )
    // {
    // $main .= ‘<span class=”avia-audiolist-artist” ‘ . $artist . ‘>’ . $params[‘args’][‘artist’];
    // }
    // else
    // {
    // $main .= ‘<span class=”avia-audiolist-artist avia-unknown” ‘ . $artist . ‘>’ . __( ‘ unknown ‘ , ‘avia_framework’ );
    // }
    // $main .= ‘</span>’;

    if( isset( $params[‘args’][‘filelength’] ) )
    {
    $main .= ‘ (<span class=”avia-audiolist-length” ‘ . $filelength . ‘>’ . $params[‘args’][‘filelength’];
    }
    else
    {
    $main .= ‘ (<span class=”avia-audiolist-length avia-unknown” ‘ . $filelength . ‘>’ . __( ‘ ??? ‘ , ‘avia_framework’ );
    }
    $main .= ‘</span>)’;

    $params[‘innerHtml’] = ”;
    $params[‘innerHtml’] .= “<div class=’avia_title_container’>”;
    $params[‘innerHtml’] .= ” <div ” . $this->class_by_arguments( ‘audio_type’ ,$params[‘args’] ) . “>”;
    $params[‘innerHtml’] .= ” <span class=’avia_audiolist_image’ {$img_template} >{$thumbnail}</span>”;
    $params[‘innerHtml’] .= ” <div class=’avia_audiolist_content’>”;
    $params[‘innerHtml’] .= ” <h4 class=’avia_title_container_inner’>” . $main . “</h4>”;
    $params[‘innerHtml’] .= ” <p class=’avia_content_album’ {$album}>” . stripslashes( $album_info ) . “</p>”;
    $params[‘innerHtml’] .= ” <p class=’avia_content_description’ {$description}>” . stripslashes( $desc_info ) . “</p>”;
    $params[‘innerHtml’] .= ” <small class=’avia_audio_url’ {$filename}>” . stripslashes( $file_info ) . “</small>”;
    $params[‘innerHtml’] .= ” </div>”;
    $params[‘innerHtml’] .= ” <div class=’hidden-attachment-id’ style=’display: none;’ {$id}>” . $id_info . ‘</div>’;
    $params[‘innerHtml’] .= ” </div>”;
    $params[‘innerHtml’] .= “</div>”;

    return $params;
    }

    /**
    * Frontend Shortcode Handler
    *
    * @since 4.1.3
    * @param array $atts array of attributes
    * @param string $content text within enclosing form of shortcode element
    * @param string $shortcodename the shortcode found, when == callback name
    * @return string $output returns the modified html string
    */
    function shortcode_handler( $atts, $content = “”, $shortcodename = “”, $meta = “” )
    {
    extract( AviaHelper::av_mobile_sizes( $atts ) ); //return $av_font_classes, $av_title_font_classes and $av_display_classes

    $this->extra_style = “”;
    $this->atts = shortcode_atts( array(
    ‘handle’ => $shortcodename,
    ‘id’ => ”,
    ‘autoplay’ => ‘manual’,
    ‘playorder’ => ‘normal’,
    ‘player_style’ => ‘classic’,
    ‘cover_id’ => ”,
    ‘cover_size’ => ‘thumbnail’,
    ‘cover_location’ => ‘hide’,
    ‘playlist_style’ => ‘light’,
    ‘tracklist’ => ‘show’,
    ‘tracknumbers’ => ‘show’,
    ‘artists’ => ‘show’,
    ‘media_icon’ => ‘show’,
    ‘font_color’ => ”,
    ‘custom_font_color’ => ”,
    ‘background_color’ => ”,
    ‘custom_background_color’ =>”,
    ‘border_color’ => ”,
    ‘custom_border_color’ => ”,

    ‘content’ => ShortcodeHelper::shortcode2array( $content, 1 )

    ), $atts, $this->config[‘shortcode’] );

    //replace some values that are removed for simplicity with defaults. can be later changed if user request those features
    $this->atts[‘cover_location’] = “hide”;
    $this->atts[‘playlist_style’] = “light”;

    if( $this->atts[‘media_icon’] == “cover”)
    {
    $this->atts[‘media_icon’] = “show”;
    }

    /**
    * Replace empty default values so we can later use them to add classes
    */
    if( empty( $this->atts[‘id’] ) )
    {
    $this->atts[‘id’] = $this->config[‘shortcode’] . ‘-‘ . avia_sc_audio_player::$instance;
    }

    avia_sc_audio_player::$instance++;

    if( empty( $this->atts[‘player_style’] ) )
    {
    $this->atts[‘player_style’] = ‘classic’;
    }

    extract( $this->atts );

    /**
    * Return if no playlist defined
    */
    if( empty( $content ) )
    {
    return ”;
    }

    $ids = array();
    foreach( $content as $key => $audio )
    {
    $ids[] = $audio[‘attr’][‘id’];
    }

    if( ‘shuffle’ == $playorder )
    {
    shuffle( $ids );
    }
    else if( ‘reverse’ == $playorder )
    {
    $ids = array_reverse( $ids );
    }

    $args = array(
    ‘type’ => ‘audio’,
    ‘ids’ => $ids,
    ‘style’ => empty( $playlist_style ) ? ‘classic’ : $playlist_style,
    ‘tracklist’ => empty( $tracklist ) || ( ‘hide’ != $tracklist ) ? true : false,
    ‘tracknumbers’ => empty( $tracknumbers ) || ( ‘hide’ != $tracknumbers ) ? true : false,
    ‘images’ => empty( $media_icon) || ( ‘hide’ != $media_icon ) ? true : false,
    ‘artists’ => empty( $artists ) || ( ‘hide’ != $artists ) ? true : false
    );

    if( ( $media_icon == ‘show’ ) && ( is_numeric( $cover_id ) ) )
    {
    add_filter( ‘wp_get_attachment_image_src’, array( $this, ‘handler_wp_get_attachment_image_src’ ), 10, 4 );
    add_filter( ‘wp_mime_type_icon’, array( $this, ‘handler_wp_mime_type_icon’ ), 10, 3 );
    }

    $player = wp_playlist_shortcode( $args );

    if( ( $media_icon == ‘show’ ) && ( is_numeric( $cover_id ) ) )
    {
    remove_filter( ‘wp_get_attachment_image_src’, array( $this, ‘handler_wp_get_attachment_image_src’ ), 10 );
    remove_filter( ‘wp_mime_type_icon’, array( $this, ‘handler_wp_mime_type_icon’ ), 10 );
    }

    $output = ”;

    $outer_cls = array(
    ‘av-player’,
    ‘av-player-container’,
    $av_display_classes
    );

    if( 1 == avia_sc_audio_player::$instance )
    {
    $outer_cls[] = ‘first’;
    }

    $outer_styles = array();

    $outer_cls[] = ‘avia-playerstyle-‘ . $player_style;

    if( $autoplay == ‘autoplay’ )
    {
    $outer_cls[] = ‘avia-playlist-autoplay’;
    }

    if( ( $font_color == ‘custom-font-color’) && ( ! empty( $custom_font_color ) ) )
    {
    $outer_cls[] = ‘avia-playlist-‘ . $font_color;
    $outer_styles[] = ‘color:’ . $custom_font_color . ‘;’;
    }

    if( ( $background_color == ‘custom-background-color’) && ( ! empty( $custom_background_color ) ) )
    {
    $outer_cls[] = ‘avia-playlist-‘ . $background_color;
    $outer_styles[] = ‘background-color:’ . $custom_background_color . ‘;’;
    }

    if( ( $border_color == ‘custom-border-color’) && ( ! empty( $custom_border_color ) ) )
    {
    $outer_cls[] = ‘avia-playlist-‘ . $border_color;
    $outer_styles[] = ‘border-color:’ . $custom_border_color . ‘;’;

    //generate thumb width based on columns
    $this->extra_style .= “<style type=’text/css’>”;
    $this->extra_style .= “#top #wrap_all #{$id} .wp-playlist-item {border-color:{$custom_border_color};}”;
    $this->extra_style .= “</style>”;

    if(!empty($this->extra_style))
    {
    if(!empty($atts[‘ajax_request’]) || !empty($_POST[‘avia_request’]))
    {
    $output .= $this->extra_style;
    $this->extra_style = “”;
    }
    else
    {
    $this->non_ajax_style .= $this->extra_style;
    add_action(‘wp_footer’, array($this, ‘print_extra_style’));
    }
    }

    }

    $cover = ”;
    if( ( $cover_location != ‘hide’ ) && ( ! empty( $cover_id ) ) )
    {
    $outer_cls[] = ‘avia-playlist-show-cover’;
    $outer_cls[] = $cover_location;
    $cover = wp_get_attachment_link( $cover_id, $cover_size );
    }
    else
    {
    $outer_cls[] = ‘avia-playlist-hide-cover’;
    }

    if( ! empty( $outer_styles ) )
    {
    $outer_styles = ‘ style=”‘ . implode( ”, $outer_styles ) . ‘” ‘;
    }
    else
    {
    $outer_styles = ”;
    }

    $output .= ‘<div id=”‘ . $id . ‘” class=”‘ . implode( ‘ ‘, $outer_cls ) . ‘” ‘ . $outer_styles . ‘>’;

    if( ! empty( $cover ) )
    {
    $output .= ‘<div class=”av-player-cover-container”>’;
    $output .= ‘<div class=”av-player-cover”>’ . $cover . ‘</div>’;
    $output .= ‘</div>’;
    }

    $output .= ‘<div class=”av-player-player-container”>’;
    $output .= $player;
    $output .= ‘</div>’;

    $output .= ‘</div>’;

    return $output;
    }

    /**
    * If user uploads an image for tbe player this image will overwrite any preset featured image.
    * To speed up the code the filter should only be activated when images should be exchanged
    *
    * @since 4.1.3
    * @param array|false $image Either array with src, width & height, icon src, or false.
    * @param int $attachment_id Image attachment ID.
    * @param string|array $size Size of image. Image size or array of width and height values
    * (in that order). Default ‘thumbnail’.
    * @param bool $icon Whether the image should be treated as an icon. Default false.
    * @return array|false
    */
    public function handler_wp_get_attachment_image_src( $image, $attachment_id, $size, $icon )
    {
    static $recursive = 0;

    /**
    * To avoid duplicating code we call the original function. Avoid endless recursions.
    */
    if( $recursive > 0 )
    {
    return $image;
    }

    $new_id = $this->atts[‘cover_id’];

    if( empty( $new_id ) || ( ! is_numeric( $new_id ) ) || ( (int) $new_id == $attachment_id ) )
    {
    return $image;
    }

    $recursive++;

    $image = wp_get_attachment_image_src( $new_id, $size, $icon );

    $recursive–;

    return $image;
    }

    /**
    * If user uploads an image for tbe player this image will overwrite the default mime icon from WP if no featured image was assigned
    * to the media file.
    * To speed up the code the filter should only be activated when images should be exchanged
    *
    * @since 4.1.3
    * @param string $icon
    * @param string $mime
    * @param int $post_id
    * @return string
    */
    public function handler_wp_mime_type_icon( $icon, $mime, $post_id )
    {
    $new_id = $this->atts[‘cover_id’];

    if( empty( $new_id ) || ! is_numeric( $new_id ) )
    {
    return $icon;
    }

    $image = wp_get_attachment_image_src( $new_id, ‘thumbnail’, false );
    return $image[0];
    }

    function print_extra_style()
    {
    echo $this->non_ajax_style;
    }

    } // end class definition

    What do I have to do ?

    Many thanks

    • This topic was modified 8 years, 3 months ago by ctancrede.
    adflashdev
    Participant

    Hi all,

    I’m trying to upload a zip file to the wp-admin dashboard, however it’s showing an error page saying – “Are you sure you want to do this?” and there’s a button – Please try again.

    I’ve uploaded other templates and they work fine but I can’t upload enfold.zip file for some reason.

    Can anyone give me an advice?

    #884025
    mcraig77
    Participant

    How do I change the rollover button color and text color for button 2? I can’t figure it out with the enfold master settings.

    NiklasRaab
    Participant

    For some reasons, the colors of the enfold theme are always set back to the default colors. But in the general styling section the customized colors appear correctly (It affects only the front-end). I have to type something in the textbox, than i can save. After pressing the save button, all colors of the front-end shown correctly again.

    I didn’t find out the timestamp the colors changed back, but it happend a view times the last days. Also the newest image files are deleted when the set back happen. They are shown in the media library, but they are blank.

    #883834
    oliverdubai
    Participant

    Hi Everybody!

    Probably an easy question:

    On my website in ENFOLD THEME:

    I would like to set our social media buttons exactly the way you have it on this page here:

    So – at the top, in the menu bar, on the right, separated with a doted line.

    This is regarding the page: http://www.goettling.me

    Where is this setting?

    Did I overlook something?

    Thanks for your help!

    Kind regards
    Oliver

    • This topic was modified 8 years, 4 months ago by oliverdubai.
    #883722

    Hi,

    The default ajax search form is added as a tooltip.

    <a href="?s=" data-avia-search-tooltip="
    
    <form action=&quot;http://localhost/kriesi/enfold/&quot; id=&quot;searchform&quot; method=&quot;get&quot; class=&quot;&quot;>
    <div>
    		<input type=&quot;submit&quot; value=&quot;&quot; id=&quot;searchsubmit&quot; class=&quot;button avia-font-entypo-fontello&quot; />
    		<input type=&quot;text&quot; id=&quot;s&quot; name=&quot;s&quot; value=&quot;&quot; placeholder='My Search' /></div>
    </form>" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"><span class="avia_hidden_link_text">Search</span></a>
    

    The form is inside the “data-avia-search-tooltip” attribute and it is rendered inside the search menu item container on click. You can find the script in the js > avia.js file, line 50.

    //creates search tooltip
            new $.AviaTooltip({"class": 'avia-search-tooltip',data: 'avia-search-tooltip', event:'click', position:'bottom', scope: "body", attach:'element', within_screen: true});
    

    Best regards,
    Ismael

    #883586
    haines1
    Participant

    Hi!

    I am trying to add an Auto-Respond email through Enfold on our Mailchimp Newsletter “Subscribe Box” in our footer.

    I have taken all necessary steps through Mailchimp and Enfold to get this working… with no luck. I have updated and switched API keys through Mailchimp. The subscribe button works and we catch email addresses but the email does not go through from us to our new subscriber.

    I have contacted Mailchimp and they mentioned that it is setup fine and it might be an issue through Enfold.

    Please advise!

    Thank you!

    #883511
    svu
    Participant

    Hello Enfold,

    I would like to have the same behaviour as when we click on ‘add to cart’ in for example a product slider, on a fullwidth button.
    Is this possible?

    fschreib
    Participant

    to whom it concern,

    I tried the google-maps template also create an google key which I register in the Enfold templat. 1.st to create coordinates is not working 2nd I cannot see the google template at my page in the 2nd column under the download button. Could you please help me in this matter. thanks in advance Franz

    #882988

    Hi Yigit,

    Thanks you so much for your patients…

    I hope i get it.

    Just to be sure.

    I instald the enfold theme, and put my users name en code in it, I made a child theme with the code in the instructions file en installed it in PFT.
    I made my design in the child theme. so was written in the instructions. so far so good :)

    But then here starts my confusion.
    The parent theme gets updates, so the theme will works fine and i don’t get any problems.
    But the child theme don’t get updates…..?

    I read here in the comments that you will need updates so I had to klik the button in instal parent theme so that the child theme will react like a parent theme. but then everything will be overwritten and i have a blanc theme again.

    Is it correct that when i use my child theme I made with the code you gave me in the instructions folder, my child theme will not be updated? or…..it will be updated without losing my design?

    sorry sorry for my supped questions, but I want really be sure I do it correct :)

    thanks you for your time and patients,

    regards hanneke

    #882931
    svu
    Participant

    Hello Enfold,

    I am trying to setup a Tab section
    Below this tab section I have a fullwidth button. I want this button to open a certain tab. I have set the anchor link to right one, they are the same in the url. Somehow it does not work.

    Can you check it out?

    Thanks,

    #882880

    Hi Yigit,

    thank you thank you for your patients :)
    I am a dummy and do this for the first time!

    I did install the enfold child theme so that is correct.
    And i made my design with it.
    But if I do the option import parent theme options what you say me to do.
    what will happen with my design? will it stay like it is (what i hope otherwise i have to start again)
    But when I read the import the child theme settings next to the bleu button it says; please be aware that this will overwrite your child theme settings?

    Will this mean that I have a blanc parent theme or that the child theme stay the way it is but only updates the enfold theme?

    do you understand what I mean?

    sorry but I really want to be sure I do the right thing :)

    thanks

    hanneke

    #882823

    I think we are having a misunderstanding. When you initialize a new installation of Enfold theme with no customization, buttons and pricing tables are blue, I think. Are you saying the only way to change their color is through CSS?

    I don’t believe that is true because I did something…i’m not sure what– i think I changed an unrelated color on the Alternative Color configuration page, and all of a sudden all of my buttons and pricing tables were black. I tried everything but could not figure out how to affect those colors using color pickers in theme configuration admin page.

    I’m of the belief that there is a color picker somewhere, or somehow, that allows you to configure color of buttons and pricing tables without having to use CSS.

    If you say I just need to use CSS again I will let this issue drop, just seems weird that something happened and then all of a sudden I have to use CSS to do what previously was happening fine on its own.

    thanks so much!

    #882666

    Hey arcray,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    #top #wrap_all .header_color li.av-menu-button-colored:hover > a .avia-menu-text {
       background: #ccc;
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #882376
    missbluesky
    Participant

    Hi,

    I am so happy that everything works so well :)
    How do you change te footer? I only want my copyright there and I read te suggestions about changing that but it did not work out?
    I tried the (nolink) option because that looks easy to me. But that didn’t do the job?
    In the headline I have just one line I would like to remove, a line between the buttons home/about ect ect. and the social media buttons. Yes its about the details :)

    Thanks you

    #882238

    I have two iPads and two iPhones… it happens on all of them when I enter the sites.
    Could you try and view this site on an iPhone: https://kriesi.at/themes/enfold-2017 and try the steps below:

    1. I enter the site on an iPhone.
    2. I press the burger menu – and get the slide out layer.
    3. I press pages in the burger menu.
    4. I press Example Pages
    5. I press About Us.
    6. I land on the page About Us.
    7. I press back using the browsers back button.
    8. The view is now blocked by the menu and I can’t see the page/view I’m trying to navigate back to.
    9. I must close the menu by pressing the X

    #882208

    Hey Johan,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file:

    .avia_ajax_form .button {
        padding: 13px 20px;
    }
    

    Best regards,
    Yigit

    #882164
    diekavallerie
    Participant

    Hello,

    is there a other way to send a bug report?

    Description:
    Enfold Theme 4.1.2
    Page -> Avia Layout-Builder -> Media Element -> Fullwidth Slider OR Slide-Show
    caption Setting for a Slide:
    When I insert a > in the button text field the slide is not visible on the frontpage.
    Example: Click here >

    • This topic was modified 8 years, 4 months ago by diekavallerie.
    #881950

    Hi,
    Well could you first try and look at this: https://kriesi.at/themes/enfold-2017
    This site does the same. It’s your site :-) Could you find the error here?
    1. using a mobile device(a phone) I enter the site and navigate to different pages using the slide out burger menu.
    2. When trying to navigate back using the browsers back button the slide out layer will block the page/view.
    3. I will then have to close the layer myself.
    I think it’s strange if I’m the only experience this :-)

    • This reply was modified 8 years, 4 months ago by civilizedk.
    #881854
    ganzschreklich
    Participant

    Dear team,
    I use the enfold theme and I try to install a pop up for subscribers to my email-list.
    The pop up I’d like to use is from mailchimp.
    This is the code mailchimp delivers to me:
    <script type=”text/javascript” src=”//downloads.mailchimp.com/js/signup-forms/popup/embed.js” data-dojo-config=”usePlainJson: true, isDebug: false”></script><script type=”text/javascript”>require([“mojo/signup-forms/Loader”], function(L) { L.start({“baseUrl”:”mc.us10.list-manage.com”,”uuid”:”6ff9b53a2f6ada8b38bb5c461″,”lid”:”564ac4c35e”}) })</script>

    But using the “code”-element-does not work.
    (Although for a regular sign up form on the page it works fine.)

    Can you give me support, where to put the code (or maybe it has to be altered a little bit?). The code for the regular sign up form had to be cleared of one element, untill the subscribe button showed properly. Maybe we have similar problem here, too?
    Thank you
    Stefanie

    #881500

    Hey hanneke van de kerkhof,

    Thanks for contacting us :)

    I have a question about the different demos,. When i instal this theme i can choose different demo,s to start my now design right?

    Yes, there is a setting in our Theme Options called Demo Import which you can select which demo you want to use.

    I read that i have to make a child page so when the theme get any updates my website will not change, is that right?

    I believe you are referring to child theme, to be exact using child theme will preserve the changes you made and wouldn’t be lost during a theme update since during theme update all files in the parent theme are replaced. You can read here for further information: https://codex.wordpress.org/Child_Themes

    I read that there are parent pages and child pages, als grandparent pages as wel…

    Yes, this feature is available in wordpress itself (whatever theme has this).

    What are the steps I have to make to install this the god way?
    First instal the zip code to use the theme upload button on wordpress, so far so good. But then? what do i have to do next?

    After installing the theme and activating it, you just need to go to Enfold > Demo Import > select a Demo and click Import, wait for it to finish and that should be it. You can check for the frontend and modify the parts you want to change. Hope this helps :)

    Best regards,
    Nikko

    #881437

    Topic: enfold demo

    in forum Enfold
    missbluesky
    Participant

    Hi,

    I just bought the theme enfold, the installation was no problem :)

    But I have a few beginner questions, yes I have read the forumtopics…but i did not find the answers
    Do you need to make a child page? or is it only nessecery if you start rewriting with css?
    Some webdesigner told me it is not nessecery, he never do it.
    If i need a child page can you help me make one? I found the code already en read the instructions but in the FPT i could not make a new map?

    I started with a demo but after all i,am not convinced that was the right choice.
    Is it possible to pick another demo and start again?

    The demo i tried was enfold freelancer and i didn’t get my photos right, they were with a lot of pixels
    The social media buttons don,t work correct. When i push Facebook for example I get my homepage (yes i give in the urrl code in the setup).

    I really miss a good documentation for dummies like me :)

    hopefully you can help me out.

    thanks so far :)

    i

    #881176
    hanneke van de kerkhof
    Guest

    Hi,

    I,am a absoluut beginner in wordpress and i get the tip to buy the theme Enfold because it would be simpel to use.
    I have a question about the different demos,. When i instal this theme i can choose different demo,s to start my now design right?
    I read that i have to make a child page so when the theme get any updates my website will not change, is that right?
    I read that there are parent pages and child pages, als grandparent pages as wel…

    What are the steps I have to make to install this the god way?
    First instal the zip code to use the theme upload button on wordpress, so far so good. But then? what do i have to do next?

    I know this are my be stupid questions but I am a beginner and I really want to learn this.

    Thanks for your help.

    greetings hanneke

    Hi Ismael,

    Thank you for your reply.

    I apprecaite all your help.

    I have created 5 different situations where I could need a call us functionality.

    1). https://www.ichauffer.co.uk (Menu item – Call Us) – As you can see it doesn’t do anything. I would like this option to only show on mobile menu and I want customer to be able to click and call.
    2). I have set up a test page here https://www.ichauffer.co.uk/test-page, and have created the following types on buttons on the page.
    a). Icon Box (I would like to make it click and call icon)
    b). A Button Element (I would like to make it click and call button)
    c). I have inserted an image call now (I would like the image to be a click and call button)

    I hope this will clarify things and we can finalise the thread and carry on building awesom websites using ENFOLD.

    Looking forward to your response.

    PS. the information you provided has helped a bit by created a section with background but the button I have created is overlaping the logo area and if I increase the size of header then my logo area become big as well. I only want to the increase the area of header where the phone number is shown.

Viewing 30 results - 5,251 through 5,280 (of 11,212 total)