Viewing 30 results - 16,531 through 16,560 (of 16,888 total)
  • Author
    Search Results
  • #167517

    Hi!

    Ich habe eine erste Version des neuen Elements schon ausprogrammiert: https://gist.github.com/InoPlugs/5c27f6ef35f208d10ccf (der Code ersetzt den derzeitigen Code in /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/video.php) aber ich warte noch auf Feedback von Kriesi, ob wir den Code so umstellen können oder nicht. Das Hauptproblem ist, dass mein Ansatz zwingend die aktuelle Version von WordPress voraussetzt (daher 3.6+) und wir vielleicht noch etwas zuwarten müssen um User mit älteren Version nicht jetzt schon von der Benutzung des Video Elements auszusperren. Wir müssen das noch intern abklären und dann sehen wir weiter.

    Regards,
    Peter

    #167312
    paulsutton
    Participant

    I was trying to add the suggested code to the form button,

    $this->output .= '<input type="submit" onClick="_gaq.push(['_trackEvent', 'Contact', 'Form Submission', 'Contact Page Form',, false]);" value="'.$this->form_params['submit'].'" class="button" />';

    as suggested here: https://kriesi.at/support/topic/adding-event-tracking-to-choices-contact-form/#post-121376

    And got the following error:
    Parse error: syntax error, unexpected ‘_trackEvent’ (T_STRING) in /home/maasen/public_html/wp-content/themes/enfold/framework/php/class-form-generator.php on line 179

    kriru
    Participant

    Hi

    my website is http://web.guru99.com/

    now the top button link at footer is not displays at main page as well as various pages

    here is the link where top button link not display

    1) http://web.guru99.com/
    2) http://web.guru99.com/php-tutorials/
    3) http://web.guru99.com/demo-editor-php/

    here you can see what i am talking about – http://i.imgur.com/PiGAwOx.png

    now i am using chrome version 29.0.1547.76
    So please help me to do so

    #167079

    Topic: new social icons

    in forum Enfold
    jackyking
    Participant

    Hi,

    Sorry for duplicated threads.

    I created a topic on this couple of days ago but it was closed before I got a chance to update it.

    My question is very specific on how to add icons of three of the most popular social networking sites in China, QQ, tencent weibo and Weibo to the top navigation bar.

    I understand they are not included in v2.2 and am not sure if future release is going to include them since they are not that popular outside of China.

    So, could you please help? how can I add these three social icons?

    QQ & weibo: http://all-free-download.com/free-vector/vector-misc/vector_summary_of_commonly_used_chinese_social_networking_sites_180168.html
    tencent weibo: http://wiki.open.t.qq.com/index.php/%E8%A7%86%E8%A7%89%E7%B4%A0%E6%9D%90%E4%B8%8B%E8%BD%BD

    Thanks,

    #167062

    Hello!

    The thumbnail sizes are specified on functions.php.

    $avia_config['imgSize']['widget'] 			 	= array('width'=>36,  'height'=>36);						// small preview pics eg sidebar news
    $avia_config['imgSize']['square'] 		 	    = array('width'=>180, 'height'=>180);		                 // small image for blogs
    $avia_config['imgSize']['featured'] 		 	= array('width'=>1500, 'height'=>430 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize']['extra_large'] 		 	= array('width'=>1500, 'height'=>1500 , 'crop' => false);	// images for fullscrren slider
    $avia_config['imgSize']['portfolio'] 		 	= array('width'=>495, 'height'=>400 );						// images for portfolio entries (2,3 column)
    $avia_config['imgSize']['portfolio_small'] 		= array('width'=>260, 'height'=>185 );						// images for portfolio 4 columns
    $avia_config['imgSize']['gallery'] 		 		= array('width'=>710, 'height'=>575 );						// images for portfolio entries (2,3 column)
    $avia_config['imgSize']['entry_with_sidebar'] 	= array('width'=>710, 'height'=>270);		                 // big images for blog and page entries
    $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1030, 'height'=>360 );						// images for fullsize pages and fullsize slider

    Regards,
    Ismael

    #166498

    I did what you suggested: deactivated all plugins but wpml and Codestyling, This is what I got:

    Looks like there’s something wrong with the Theme itself.

    #166458

    Hey wendlandm!

    Here’s an idea, create the slider you want using the Magic wand tool in any page, copy the generated shortcode.

    Open header.php and create a conditional like this (at the end of the file), and with the help of the do_shortcode function we can embed the shortcode previously created:
    This will make it appear in every single blog post and in the main blog page, if you want them to appear in category and archive pages you can add is_archive(), is_category() conditionals.

    http://codex.wordpress.org/Conditional_Tags
    http://codex.wordpress.org/Function_Reference/do_shortcode

    Best regards,
    Josue

    Hey!

    Please switch your theme to debug mode. Edit function.php, find this code:

    if(isset($avia_config['use_child_theme_functions_only'])) return;

    Below, add this code:

    //set builder mode to debug
    add_action('avia_builder_mode', "builder_set_debug");
    function builder_set_debug()
    {
    return "debug";
    }

    You will be able to see the actual shortcode below the builder. This is the whole shortcode for “One Page Portfolio”.

    http://pastebin.com/B32C7ZSB

    Cheers!
    Ismael

    #166201

    I have this error on log file:

    ALERT – script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker ‘86.120.176.37’, file ‘/home/sites/mydomain.com/public_html/wp-admin/admin.php’, line 107)

    I have many sites in this hosting and I don’t have any problem. WordPress kit is downloaded from wordpress.org, and uploaded with Transmit. If you want I can give you access on website.

    Thank you

    kriru
    Participant

    Hi,
    I have written this code in style.css file for child theme
    /*
    Theme Name: EnfoldChild
    Description: A superflexible and responsive Business Theme by Kriesi – <br/> Update notifications available on twitter and facebook:<br/> Follow me on twitter<br/> – Join the Facebook Group
    Version: 1.7
    Author: Kriesi
    Author URI: http://kriesi.at
    Theme URI: kriesi.at/themes/enfold/
    Template: Enfold
    */
    I have also typed this code in functions.php file:
    <?php
    /*
    * Enfold Child Theme functions File
    */
    I have followed each steps for creating child theme as per the vedio given by you.
    Though i am facing error message . I am getting error message as: this child theme require the parent theme.
    I have also tried the zip folder that you have given to me though i am getting error message.
    Please help me out in this.
    Thanks & Regards.

    #165964

    Hello stevemulisa!

    The only things that get changed are the actual theme files. So any .php, .js or .css file that comes with the theme download. Any theme settings (done in the WordPress admin) are safe.

    For a quick guide on updating your theme take a look at this video on updating the Enfold theme via FTP: https://vimeo.com/channels/aviathemes/67209750

    Cheers!
    Devin

    #165924

    In lieu of hearing from any support here I talked with my host for a bit to see what we could find. Looks like they may have resolved by turning off pagespeed:

    Can not edit pages with the theme enfold. At first I received a couple of
    modsec errors

    [Tue Sep 24 18:04:29 2013] [error] [client 10.30.5.49] ModSecurity: Rule
    265eda8 [id “3000086”][file
    “/usr/local/apache/conf/modsec2/rootkits.conf”][line
    “155”] – Execution error – PCRE limits exceeded (-8): (null).
    [hostname “myserver.com”] [uri
    “/wp-admin/admin-ajax.php”] [unique_id
    “id”]

    [Tue Sep 24 18:22:09 2013] [error] [client 10.30.5.49] ModSecurity:
    collections_remove_stale: Failed deleting collection (name “ip”, key
    “ip”): Internal error [hostname
    “myserver.com”] [uri
    “/wp-content/themes/enfold/framework/css/avia_colorpicker.css,qver=3.6.1.pagespeed.cf.8hBxrSmIyJ.css”]
    [unique_id “id”]

    [Tue Sep 24 18:22:09 2013] [error] [client 10.30.5.49] ModSecurity:
    collections_remove_stale: Failed deleting collection (name “ip”, key
    “ip”): Internal error [hostname
    “myserver.com”] [uri
    “/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/css/avia-media.css,qver=3.6.1.pagespeed.cf.X8onwKqTMi.css”]
    [unique_id “id”]

    whitelisted the following.

    <LocationMatch “/wp-admin/admin-ajax.php”>
    SecRuleRemoveById 3000086
    </LocationMatch>

    We get the same thing.

    Tried raising the PCRE limits.
    /usr/local/lib/php.ini :

    pcre.backtrack_limit = 10000000
    pcre.recursion_limit = 10000000

    /usr/local/apache/conf/modsec2/custom.conf

    SecPcreMatchLimit 150000
    SecPcreMatchLimitRecursion 150000

    Did no good.

    In the code we found that it was failing at

    GET
    http://myserver.com/wp-includes/js/tinymce/langs/en.js?ver=358-25336
    404 (Not Found)
    wp-tinymce.php,qc=1,aver=358-25336.pagespeed.jm.xvSTA_cQNy.js:1 GET
    http://myserver. com/wp-includes/js/tinymce/themes/advanced/langs/en.js?ver=358-25336
    404 (Not Found)
    wp-tinymce.php,qc=1,aver=358-25336.pagespeed.jm.xvSTA_cQNy.js:1 Failed to
    load: http://myserver.com/wp-includes/js/tinymce/langs/en.js
    wp-tinymce.php,qc=1,aver=358-25336.pagespeed.jm.xvSTA_cQNy.js:1 Failed to
    load:
    http://myserver.com/wp-includes/js/tinymce/themes/advanced/langs/en.js
    wp-tinymce.php,qc=1,aver=358-25336.pagespeed.jm.xvSTA_cQNy.js:1 Resource
    interpreted as Font but transferred with MIME type application/x-font-woff:
    http://myserver.com/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/fonts/entypo-fontello.woff&#8221;.
    post.php:1930 Uncaught TypeError: Cannot call method ‘setContent’ of
    undefined avia-modal.js,qver=0.3.1.pagespeed.jm.GwFNp0CbNe.js:77

    Customer is using wp 3.6.1
    customer stated he has installed the latest version of enfold

    no errors for the site specifically coming up in apache other then the modsec
    errors.

    But I believe we have resolved the issue. There was a issue the wherepagespeed_module was interfering with the loading of the edit page.

    avia-modal.js,qver=0.3.1.pagespeed.jm.GwFNp0CbNe.js:77

    We turned off pagespeed for now

    If you want we can turn this on again and enter a entry in .htaccess like the following.

    <IfModule pagespeed_module>
    ModPagespeedDisallow http://myserver.com/wp-admin/*
    </IfModule>

    Would appreciate any follow up from the support here to see how we might get everything running with the pagespeed module since thats nice to have.

    Thoughts?

    #165911

    Hi Ismael, this is the same issue (and client) I was having when I started this thread (https://kriesi.at/support/topic/avia-layout-builder-not-loading/?replies=2#post-135828).

    This issue was solved on my server, where development was taking place at the time; the issues was resolved when a participant offered the following solution:

    Hi Guys,
    I was having the same problem until I changed the PHP version from 5.3.27 FastCGI to 5.3.27 CGI (Stable).
    Hope this helps,
    Jonathan

    I am on (mt) hosting, and that simple solution solved my problem, but this site is not going to be hosted with (mt), it will be with Liquid Web, and right now, it is not working as it should.

    #165781

    Hi, thank you for the quick reply. When I add that line on functions.php I get the following error:
    “Parse error: syntax error, unexpected ‘=’, expecting ‘)’ in /home/content/71/8730971/html/wp-content/themes/enfold/functions.php on line 26”

    After deleting the addition, this error persists. Any clue why?

    #165669
    gianmarizzi
    Participant

    As suggested by Dude (https://kriesi.at/support/topic/how-to-translate-enfold-site-with-wpml-correctly/#post-162796) I installed Codestyling Localization but I got several errors:

    1) Scripting Guard detected these errors:

    2) I followed Dude instructions, but when I tried to repeat scan I got an access error message.
    3) I tried to edit and got these two messages:

    • Error: The actual loaded translation content does not match the textdomain: avia_framework
      Expect, that any text you translate will not occure as long as the textdomain is mismatching!
      This is a coding issue at the source files you try to translate, please contact the original Author and explain this mismatch.
    • Warning: The actual loaded translation content contains mixed textdomains and is not pure translateable within one textdomain.
      It seems, that there is code contained extracted out of other plugins, themes or widgets and used by copy & paste inside some source files.
      The affected unknown textdomains are:
    #165350
    kooop
    Participant

    This is the site I’m working on: http://calirivierahomerental.com/

    I tried to add a line of code to the functions.php file, now it keeps giving me this:

    Warning: require_once(config-wpml/config.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/55/11731455/html/wp-includes/functions.php on line 29

    Fatal error: require_once() [function.require]: Failed opening required ‘config-wpml/config.php’ (include_path=’.:/usr/local/php5_3/lib/php’) in /home/content/55/11731455/html/wp-includes/functions.php on line 29

    1) I hit the back button, recopied everything without the offending code and it still didn’t work.
    2) I reuploaded the entire file via FTP and it still didn’t fix it.
    3) I reuploaded the entire theme via FTP and it’s still broken.

    Help!
    Thanks,
    Kelly
    (Email address hidden if logged out)

    #165345
    rogermedia
    Participant

    Hi,

    I have read the multiple threads on this issue and cannot seem to find a solution. I have updated PHP to 5.3.27. We have reinstalled WordPress and made a modsecurity change for PCRE limits being hit and also updated the quotas on the server to ensure we were not hitting any account space limits.

    I have uninstalled and deleted all plugins and ran a repair on the database.

    With all of this when I go to an existing page setup with Avia and select a text block the window that pops up contains no text either in the Visual or Text windows.

    I am running the theme on a test server at the moment as it is a redesign of another site. I would be happy to send my Admin login for you to have a look.

    Sincerely,
    Roger

    #165332

    Hi Guys!

    I’ve got my site online:

    http://entreventos2.lafabricadigital.com.mx/

    Issues I’m having trouble with:

    1. Menu Links: Placing cursor exactly over links does not work. Link is below type.

    2. I used a smaller logo (227 x 123px) than the recommnded maximum size on the administrator theme options which is 340 x 156 px, nevertheless logo keeps resizing. I don’t want that because it loses resolution, original size is -almost- pixels perfect :)

    3. On resposive, logo falls over my <div id=header-top>, also breadcrumbs and main container are not where they should be, For sure is the margin I’m using in desktop viewport.

    4. Fixed Header with social icons and links falls over header-top image. Maybe client would request taht in the near future.

    Maybe making header-top image responsive (reducing size as viwport changes) would help?

    Here is the code:

    Header.php

    <div id='header' class=' header_color <?php avia_is_dark_bg('header_color'); echo " ".$headerMenu; ?>'>
            
            <!-- This is my extra div element-->	
            <?php echo '<div class="header-top"></div>'; ?>
            <!-- Ends extra div element-->
    
    		<?php
    
    		$social_args = array('outside'=>'ul', 'inside'=>'li', 'append' => '');
    
    		//subheader, only display when the user chooses a social header
    		if(strpos($headerS,'social_header') !== false)
    		{
    		?>

    Custom CSS:

    .container_wrap {
        border-top: none;
    }
    .header-top {
    	position: relative;
    	z-index: 400;
    	width: 100%;
    	height: 80px;
    	background-color: transparent;
    	background-attachment: scroll;
    	background-image:url(../../themes/enfold-child/images/header_image_2.png);
    	background-position: center top;
    	background-repeat: no-repeat;
            margin-bottom: -50px;
    }
    
    .title_container{
            margin-top: 35px;
    }

    Needless to say I’m not sure if I’m doing this the right way. I’ll appreciate your help a lot.

    Thank you, regards.

    #165128

    call_user_func_array() expects parameter 1 to be a valid callback, function ‘append_google_search_nav’ not found or invalid function name in E:\Guru99\xampp\htdocs\career99\wp-includes\plugin.php on line 173

    #165087

    In reply to: Media Query Classes

    Hello joe88!

    You can add a unique selector for each Avia Elements. Edit functions.php, find this code:

    if(isset($avia_config['use_child_theme_functions_only'])) return;

    Below, add this code:

    add_theme_support('avia_template_builder_custom_css');

    Edit any avia elements like Button element then scroll below. Add a unique css selector on “Custom Css Class” field. For example, add “no-ipad”.

    Use media queries to target each classes. You can add something like this on your custom.css or Quick CSS to not display elements with the no-ipad selector

    @media all and (max-width: 1000px) and (min-width: 700px) {
    .no-ipad {
    display: none !important;
    }
    }

    Regards,
    Ismael

    Just to let you know that every time you update the post your position in the cue will reset. I only know this as I did it once :-)

    Its best to give around 2 days max for a reply. Most of the time they get back to you a day later. For weekends I have had answers but we all need a break sometimes :-) so normally you need to wait till Monday.

    You can reset the thumbnail sizes in the function.php. I used this in my child theme:

    <?php

    function avia_change_image_size_array()
    {
    global $avia_config;
    $avia_config[‘imgSize’][‘widget’] = array(‘width’=>36, ‘height’=>36); // small preview pics eg sidebar news
    $avia_config[‘imgSize’][‘square’] = array(‘width’=>180, ‘height’=>180); // small image for blogs
    $avia_config[‘imgSize’][‘featured’] = array(‘width’=>1500, ‘height’=>901 ); // images for fullsize pages and fullsize slider
    $avia_config[‘imgSize’][‘extra_large’] = array(‘width’=>1500, ‘height’=>1500 , ‘crop’ => false); // images for fullscrren slider
    $avia_config[‘imgSize’][‘portfolio’] = array(‘width’=>495, ‘height’=>297 ); // images for portfolio entries (2,3 column)
    $avia_config[‘imgSize’][‘portfolio_small’] = array(‘width’=>260, ‘height’=>156 ); // images for portfolio 4 columns
    $avia_config[‘imgSize’][‘gallery’] = array(‘width’=>710, ‘height’=>426 ); // images for portfolio entries (2,3 column)
    $avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>710, ‘height’=>270); // big images for blog and page entries
    $avia_config[‘imgSize’][‘entry_without_sidebar’]= array(‘width’=>1030, ‘height’=>619 ); // images for fullsize pages and fullsize slider

    if(avia_get_option(‘responsive_layout’) == “responsive responsive_large”)
    {
    $avia_config[‘imgSize’][‘gallery’] = array(‘width’=>845, ‘height’=>507 ); // images for portfolio entries (2,3 column)
    $avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>845, ‘height’=>321); // big images for blog and page entries
    $avia_config[‘imgSize’][‘entry_without_sidebar’]= array(‘width’=>1210, ‘height’=>727 ); // images for fullsize pages and fullsize slider
    }
    avia_backend_add_thumbnail_size($avia_config);
    }
    add_action( ‘init’, ‘avia_change_image_size_array’, 1);

    If you put this in your child theme folder it will override the theme sizes but you will need a plugin to regenerate the images after you have done this. I use Regenerate Thumbnails

    For any more help I would wait the the professionals :-)

    #164324
    allegrabillings
    Participant

    Hey guys, I know this has been asked before but I am still having trouble after looking over different solutions. I want to make the iconbox icons themselves link not just the heading in the box (the default behavior)

    I saw one solutions that made the whole box a link, which I don’t want.

    then I saw this from dude
    https://kriesi.at/support/topic/icon-box-icon-link/

    and that is what I tried. But it isn’t working. and I can’t figure out how to impliment it. I am using a child theme and this is a bit new for me in changing this type of code. I have only modified some of the functions behaviors and css thus far.

    I changed the code per dudes instructions and them I placed the entire iconbox.php file in my child folder and that didn’t work. then because I didn’t know how to deploy the change I tried to add just the new code to functions.php

    Can you please tell me what if anything is wrong with my code in the iconbox.php file and then how/where to place it in my child themes folder.
    Thanks

    ps. line 172 is where the change started, but I guess you can’t see that obviously. but gives general location.
    website is http://jackandaddi.com/ and there are some icon boxes on the home screen.

    <?php
    /**
    * Textblock
    * Shortcode which creates a text element wrapped in a div
    */

    if ( !class_exists( 'avia_sc_icon_box' ) )
    {
    class avia_sc_icon_box extends aviaShortcodeTemplate
    {
    /**
    * Create the config array for the shortcode button
    */
    function shortcode_insert_button()
    {
    $this->config['name'] = __('Icon Box', 'avia_framework' );
    $this->config['tab'] = __('Content Elements', 'avia_framework' );
    $this->config['icon'] = AviaBuilder::$path['imagesURL']."sc-icon_box.png";
    $this->config['order'] = 90;
    $this->config['target'] = 'avia-target-insert';
    $this->config['shortcode'] = 'av_icon_box';
    $this->config['tooltip'] = __('Creates a content block with icon to the left or above', 'avia_framework' );
    }

    /**
    * 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
    *
    * @return void
    */
    function popup_elements()
    {
    $this->elements = array(

    array(
    "name" => __("IconBox Icon",'avia_framework' ),
    "desc" => __("Select an IconBox Icon bellow",'avia_framework' ),
    "id" => "icon",
    "type" => "iconfont",
    "font" => "entypo-fontello",
    "folder"=> AviaBuilder::$path['assetsURL']."fonts/",
    "chars" => AviaBuilder::$path['pluginPath'].'assets/fonts/entypo-fontello-charmap.php',
    "std" => "1"),

    array(
    "name" => __("Icon Position", 'avia_framework' ),
    "desc" => __("Should the icon be positioned at the left or at the top?", 'avia_framework' ),
    "id" => "position",
    "type" => "select",
    "std" => "left",
    "subtype" => array( __('Left', 'avia_framework' )=>'left',
    __('Top', 'avia_framework' )=>'top')),

    array(
    "name" => __("Title",'avia_framework' ),
    "desc" => __("Add an IconBox title here",'avia_framework' ),
    "id" => "title",
    "type" => "input",
    "std" => __("IconBox Title",'avia_framework' )),

    array(
    "name" => __("Title Link?", 'avia_framework' ),
    "desc" => __("Do you want to apply a link to the title?", 'avia_framework' ),
    "id" => "link",
    "type" => "linkpicker",
    "fetchTMPL" => true,
    "std" => "",
    "subtype" => array(
    __('No Link', 'avia_framework' ) =>'',
    __('Set Manually', 'avia_framework' ) =>'manually',
    __('Single Entry', 'avia_framework' ) =>'single',
    __('Taxonomy Overview Page', 'avia_framework' )=>'taxonomy',
    ),
    "std" => ""),

    array(
    "name" => __("Open in new window", 'avia_framework' ),
    "desc" => __("Do you want to open the link in a new window", 'avia_framework' ),
    "id" => "linktarget",
    "required" => array('link', 'not', ''),
    "type" => "select",
    "std" => "no",
    "subtype" => array(
    __('Yes', 'avia_framework' ) =>'yes',
    __('No', 'avia_framework' ) =>'no')),

    array(
    "name" => __("Content",'avia_framework' ),
    "desc" => __("Add some content for this IconBox",'avia_framework' ),
    "id" => "content",
    "type" => "tiny_mce",
    "std" => __("Click here to add your own text", "avia_framework" )),
    );

    }

    /**
    * 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
    *
    *
    * @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)
    {
    $icon_el = $this->elements[0];

    $chars = $icon_el['chars'];

    if(!is_array($chars))
    {
    include($icon_el['chars']);
    }

    $display_char = isset($chars[($params['args']['icon'] - 1)]) ? $chars[($params['args']['icon'] - 1)] : $chars[0];

    $inner = "<div class='avia_iconbox avia_textblock avia_textblock_style'>";
    $inner .= " <div ".$this->class_by_arguments('position' ,$params['args']).">";
    $inner .= " <span data-update_with='icon_fakeArg' class='avia_iconbox_icon avia-font-".$icon_el['font']."'>".$display_char."</span>";
    $inner .= " <div class='avia_iconbox_content_wrap'>";
    $inner .= " <h4 class='avia_iconbox_title' data-update_with='title'>".html_entity_decode($params['args']['title'])."</h4>";
    $inner .= " <div class='avia_iconbox_content' data-update_with='content'>".stripslashes(wpautop(trim(html_entity_decode($params['content']))))."</div>";
    $inner .= " </div>";
    $inner .= " </div>";
    $inner .= "</div>";

    $params['innerHtml'] = $inner;
    $params['class'] = "";

    return $params;
    }

    /**
    * Frontend Shortcode Handler
    *
    * @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(shortcode_atts(array('title' => 'Title', 'icon' => '1', 'position' => 'left', 'link' =>'', 'linktarget' => 'no'), $atts));

    $icon_el = $this->elements[0];

    $chars = $icon_el['chars'];
    $font = $icon_el['font'];
    if(!is_array($chars))
    {
    include($icon_el['chars']);
    }

    $display_char = isset($chars[($icon - 1)]) ? $chars[($icon - 1)] : $chars[0];
    if($position == 'top') $position .= " main_color";

    $linktarget = ($linktarget == 'no') ? '' : 'target="_blank"';
    $link = aviaHelper::get_url($link);
    if(!empty($link))
    {
    $title = "$title";
    }

    // add blockquotes to the content
    $output = '<div class="iconbox iconbox_'.$position.' '.$meta['el_class'].'">';
    $output .= '<div class="iconbox_content">';

    /* commented out the below line wich is default, icon box heading only is the link, and replaced the new code that makes the icon itself a link as well below the lomented out line
    $output .= '<div class="iconbox_icon heading-color avia-font-'.$font.'">'.$display_char.'</div>';*/
    if(!empty($link))
    {
    $output .= "";
    $output .= '<div class="iconbox_icon heading-color avia-font-'.$font.'">'.$display_char.'</div>';
    $output .= '
    ';
    }
    else
    {
    $output .= '<div class="iconbox_icon heading-color avia-font-'.$font.'">'.$display_char.'</div>';
    }
    $output .= '<h3 class="iconbox_content_title">'.$title."</h3>";
    $output .= ShortcodeHelper::avia_apply_autop(ShortcodeHelper::avia_remove_autop( $content ) );
    $output .= '</div></div>';

    return $output;
    }

    }
    }

    Hola,

    Veo que no estas usando el socket, allí es donde puedes poner estos links de “Login / Register”, para hacerlo simplemente crea un nuevo Menu y asignale su ubicación al Socket.

    Con lo que respecta a modificar el footer, puedes usar los Widgets, ya si quieres hacer algo mas complejo se tendría que editar el archivo footer.php

    Saludos,
    Josue

    Hi codecreative!

    It’s here: enfold/framework/php/class-framework-widgets.php, starts at line 570.

    Cheers!
    Josue

    #164137

    In reply to: Sticky Post

    Nach etwas Recherche scheint dies ein Bug von WP zu sein ( http://wordpress.stackexchange.com/questions/87472/ensuring-sticky-posts-are-retrieved-first-without-using-two-queries ) – anscheinend werden die “Sticky” Posts teilweise ignoriert. Ich habe den Code ganz am Ende des Threads getestet und eine leicht modifizierte Version funktioniert für mich:

    
    add_filter('the_posts', 'bump_sticky_posts_to_top');
    function bump_sticky_posts_to_top($posts) {
        foreach($posts as $i => $post) {
            if(is_sticky($post->ID)) 
            {
                $stickies[] = $post;
                unset($posts[$i]);
            }
        }
        
        if(!empty($stickies)) 
            return array_merge($stickies, $posts);
        
        return $posts;
    }
    

    einfach statt dem Code den ich oben gepostet habe in functions.php einfügen.

    kc
    Participant

    hey there,

    1. i use the 2.2 enfoldtheme, in portfoliosettings i can`t set any thumbnailcolumns, i choose 4 its 5, i choose 12 it´s still 5?
    i read a topic with the same problem – one solution is this code for the css – #top .avia-gallery .avia-gallery-thumb a{ width: 10% !important; }
    when i add this code in my css, yep it changes the columns from 5 to 10, but it is no solutions… maybe it`s a bug- blease guys is there any help for that?

    2. my thumbnailpictures in the portfolio looks not sharp in the gallery thumpnailcolumn with set to 5, the thumbnailframe in the portfolio got the size
    137px x 200px and the thumbnailpicture has just only 53px x 80px, so that scratch my eyes!
    in the function-enfold.php is a option to change the thumbnails, the original settings in the functions.php are 80px x 80px, must i change this, and when in wich size blease, a size waht works for every setting?
    thumbnail
    sorry about my english, i hope you can unterstand me.

    #164055

    Hey!

    1) You need to translate the menus too (Appearance > Menus). If you use a custom menu widget you need to use the widget logic plugin to translate it – see: http://wpml.org/2011/03/howto-display-different-widgets-per-language/

    3) Because the widget will just show posts from the current selected language. You can translate the widgets though (see 1) ).

    You can remove this flags easily – open up header.php an delete

    
    					/*
    					* Hook that can be used for plugins and theme extensions (currently: the wpml language selector)
    					*/
    		      		do_action('avia_meta_header');
    

    Best regards,
    Peter

    #163950

    Hello!

    I couldn’t reproduce the label issue on my test server and the $_post varible name length probably depends on the php.ini (configuration file) settings ( http://www.ozzu.com/programming-forum/max-length-post-get-variable-names-t77133.html ). We’ll add a fix to the next update – for now you can fix it by editing wp-content\themes\enfold\framework\php\class-form-generator.php. Open up the file and replace

    
    				$key = avia_backend_safe_string($key);
    
    				if(empty($key))
    				{
    					$iterations++;
    					$key = $iterations;
    				}
    

    with

    
    				$key = avia_backend_safe_string($key);
    
    				if(empty($key))
    				{
    					$iterations++;
    					$key = $iterations;
    				}
    
    				$key = avia_backend_truncate($key, 15, "_", "", false, '', false);
    

    and

    
    					$element_id = avia_backend_safe_string('avia_'.$key);
    					if($element_id == "avia_")
    					{
    						$iterations ++;
    						$element_id = "avia_".$iterations;
    					}
    
    

    with

    
    					$element_id = avia_backend_safe_string('avia_'.$key);
    					if($element_id == "avia_")
    					{
    						$iterations ++;
    						$element_id = "avia_".$iterations;
    					}
    
    					$element_id = avia_backend_truncate($element_id, 20, "_", "", false, '', false);
    

    Best regards,
    Peter

    #163907
    boogermann
    Participant

    I’ve tried to add the short code to a text box as I’ve suspected it should be done, and after doing some research on the forums, I’ve seem a moderator instructing to do the same thing, although the form appears on the page, once you hit submit the button disappears and nothing happens, no JS error, no PHP error, and if i put the form on a page without the layout editor it works perfectly.
    Any solutions? I’m running the last version of GF 1.7.9 and version 2.2 of the enfold theme.

    Thanks in Advanced

    #163716

    Hey!

    I’m not sure if this is a good practice but you can try it.
    In your WordPress theme directory please go to Enfold > Config-templatebuilder > Avia-shortcodes and open Gallery.php file and find following code line 198
    http://i.imgur.com/3BsqS15.jpg
    and change it to
    http://i.imgur.com/Ojp1iF5.jpg
    Then find following code in line 204
    http://i.imgur.com/Og0BjUu.jpg
    and change it to
    http://i.imgur.com/3V7ImHD.jpg
    Basically remove what’s inside href in both

    Cheers!
    Yigit

Viewing 30 results - 16,531 through 16,560 (of 16,888 total)