Viewing 30 results - 1,411 through 1,440 (of 1,619 total)
  • Author
    Search Results
  • #355903
    plugmedialtd
    Participant

    Hi,

    I am building Custom Forms for a website on Enfold and I want it to look like the built in forms on Enfold. I am using Contact Form 7. Where might I find a list of the shortcodes so I can place “First Name” in a Half Column and “Last Name: in the other Half Column, whilst still being able to have a mixture of Full Column fields and Half column fields so it looks like the standard contact form in Enfold, please.

    Your help is much appreciated in this manner.

    Sam

    #354359
    yoginthusiast
    Participant

    Hi!

    I’m using 2 custom fonts with @font-face. It works fine but somehow the main menu is not changing to Frutiger Light. Here is what I have in custom css:

    html,body,div,span,applet,object,iframe,p,h1,h2,h3,h4,h5,h6,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video {
    font-family: “FrutigerLTW01-45Light”;
    }

    h1.av-special-heading-tag, h2.av-special-heading-tag, h3.av-special-heading-tag{
    font-family: “Optima nova LT W01 Demi”;
    }

    Do I have to include a special selector or a universal selector. Everything except the special headings should be in Frutiger Light.

    Thanks for your help. Best regards, Tom

    #354260
    xhRK2jvC
    Participant

    Hi,
    I added an extra text field to portfolio items using the Types plugin. Now I want to add a new DIV with the content of this field in the portfolio overview page and in the portfolio detail view for each item.

    http://wp-types.com/documentation/user-guides/displaying-wordpress-custom-fields/

    But where do I place the PHP to access the content of the field?

    #350996

    In reply to: adding custom fields

    Hi Elliot,

    I think this is misunderstanding. I do not need customization from you and I know that the ‘key’ has to be replaced with my custom field name.

    I have 2 questions:

    1. I need you to tell me which files need to be changed to have custom fields displayed in a post in a blog roll view, single post view, category view. You have said I need to make changes to /enfold/includes/loop-index.php.

    Is this the only file in Enfold theme that is responsible for rendering all the above mentioned post views (blog roll view, single post view, category view, etc.)? Or are there other files that also need editing?

    2. You have also mentioned that I can copy /enfold/includes/loop-index.php to the Enfold-child theme folder. I did that and put echo get_post_meta( $the_id, ‘key’, true ); However this does not work. It is only when changes are made to the file located in the main theme /enfold/includes/ that they work but not in the child-theme.

    So the second question is how to copy /enfold/includes/loop-index.php to the Enfold-child theme folder, so that changes made to this file in the child-theme actually work?

    Hope this explains my problem better than the previous post.

    Many thanks again for your help.
    I really appreciate it.

    regards,
    P

    #350539

    In reply to: adding custom fields

    Hi there,

    I have copied the file loop-index.php to the child theme folder added the following code and it does not work – nothing is displayed:

    echo get_post_meta( $the_id, 'key', true );

    I have 4 custom fields in each language. I need to display them in a specific order under the post title on all pages where t=posts are (eg. blog roll, single post, specific category/tag post)

    Below is the code I used in twenty ten a couple of years ago. It illustrates the principle:

    <div class="pprow">
    		<?php $myid = $post->ID; // Assign this using a variable, or however you were before, eg. $post->ID
    
    		$data = $wpdb->get_results("
    		SELECT * FROM $wpdb->postmeta WHERE post_id = $myid
    		AND meta_key NOT LIKE '\_%'
    		ORDER by (CASE WHEN meta_key = 'Composed in' THEN 0
    				WHEN meta_key = 'Duration' THEN 1
    	       			WHEN meta_key = 'Instrumentation' THEN 2
    	       			WHEN meta_key = 'Movements' THEN 3 
    	       			WHEN meta_key = 'Rok' THEN 4
    	       			WHEN meta_key = 'Czas' THEN 5
    	       			WHEN meta_key = 'Instrumentacja' THEN 6
    	       			WHEN meta_key = 'Części utworu' THEN 7 END)
    		"); // meta_key ASC - assign the field to sort e.g. meta_id, meta_key, etc. or specify order using CASE WHEN
    
    		if( !empty( $data ) ) {
    			foreach( $data as $result_object ) {
    				print '<div class="ppmeta-key">';
    				print $result_object->meta_key;
    				print ': ';
    				print '</div><div class="ppmeta-value">';
    				print $result_object->meta_value;
    				print '</div>';
    				print '<br />';
    							}
    					}
    		?>	
    		</div>

    Can you please advise how to implement it in Enfold?

    Many thanks,
    Peter

    • This reply was modified 11 years, 1 month ago by TheElear.
    #349477

    Topic: adding custom fields

    in forum Enfold
    TheElear
    Participant

    Hi All,

    I am changing the theme from twenty ten to Enfold. I had some 4 Custom Fields for each post which I displayed under the post title in twenty ten. How can I add them to Enfold so that they are displayed under the post title in Enfold?

    regards,

    Hey!

    You’d need to use two snippets in functions.php, (child theme would be ideal):

    The first one would be to enable custom fields for Portfolio items:

    add_filter('avf_portfolio_cpt_args', 'avf_portfolio_add_custom_fields', 1);
    function avf_portfolio_add_custom_fields($args) {
    	$args['supports'] = array('title','thumbnail','excerpt','editor','comments', 'custom-fields');
    	return $args;
    }

    And the second one to alter the portfolio grid order (“custom_price” being the custom field):

    function custom_post_grid_query( $query, $params ) {
        $query['orderby'] = 'meta_value';
        $query['order'] = 'ASC';
        $query['meta_query'] = array(array('key' => 'custom_price'));
        return $query;
    }
    add_filter( 'avia_post_grid_query', 'custom_post_grid_query', 10, 2);

    Best regards,
    Josue

    nparent
    Participant

    Hello,

    I try to use the Enfold theme for a real estate website. I would like to sort the entries (portfolio) in order of price from highest to lowest. For this I try to use the excerpt because custom fields are not available with portfolio post type. (Unless I’m mistaken?)

    My questions are:

    – How do I proceed? (add php code to functions.php?, create template page?)
    – How to prevent updates replace my configurations? (Child theme?)
    – Should I use another method instead?
    – Should I rather use an extension of a real estate broker?
    – If so, do you know some good real estate plugins which are compatible with the Enfold theme ?
    – Do you have any other suggestions for my purposes?

    (If you are a member of Kriesi team, is it possible to know whether you will eventually add such features in future updates?)

    A big thank you in advance.

    #347917
    newmesis
    Participant

    as I can edit the layout for the list category post?

    I would like to add other data that is in custom fields

    • This topic was modified 11 years, 1 month ago by newmesis.
    #346071
    kifela
    Participant

    Hello,

    I have created some custom fields using ACF and have managed to get these to display as I want by adding this code to the relevant single post templates:

    <?php the_field('field_name'); ?>

    However, I also want to be able to display the contents of a custom field in the Post Slider, so that it is visible when added as a shortcode in the advanced layout editor.

    I understand that I need to modify the template file enfold/config-templatebuilder/avia-shortcodes/contentslider.php
    The contents of the field should appear above the excerpt, so I’m assuming the relevant code needs to go around line 375, before:

    if($show_meta && !empty($excerpt))

    But at this point I get stuck! Can anyone advise me please? Any help much appreciated.
    Thanks

    #345380

    Hi Derek!

    Please review your website. I have enabled “custom fields” in Screen Options and set header to “yes”

    Cheers!
    Yigit

    #345049

    Hey!

    I’m sorry but this thread is getting a bit off topic. If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.

    Regarding the issue at hand, please activate the main title by editing the page. Look for Layout > Title Bar Settings. If it doesn’t work, enable the Custom Fields meta box then look for the header_title_bar key. Add title_bar_breadcrumb as value then save changes.

    Thanks!

    Best regards,
    Ismael

    Hi abovefp!

    First refer to this article to turn on Custom CSS Class fields:
    http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/

    Second open your contact form’s settings and find the the Custom CSS Class setting.

    Insert customcontactform in the text field.

    In Enfold Theme Options > General Styling > Quick CSS

    Add the following code and save

    .customcontactform input[type="submit"]{
    
    background-color:#b20d0d !important;
    color: #FFF !important;;
    border-color: #b20d0d !important;
    
    }

    Cheers!
    Arvish

    #344787

    I managed to find a tutorial which allowed me to incorporate links and lengthening the excerpts, but I couldn’t figure out how to include [audio] elements, and to stop when the <!–more–> tag appears. I’ll get in touch with some friends who already instructed me to use Custom Fields. It’ll take me a while, but I’m good for now.

    Basically all I want to do is display the posts the way they are on an archive/category. The only difference is that there would only be one post instead of 10 per page. You can see it this in action under the Podcast page on my site (use login credentials on the top of this thread). Scroll down to the “Latest Episode” section. I’d like to have that show everything up to the <!–more–> break.

    Onwards and upwards.

    kevinmamaqi
    Participant

    Hello,

    I am using several custom fields for some of my posts and I want to display them after content. I am also using mappress and YARPP to display more content into the entries. Also I would like to include some HR into the content.

    Here is the code used to display custom fields:

    `// echo the post content
    echo ‘<div class=”entry-content” ‘.avia_markup_helper(array(‘context’ => ‘entry_content’,’echo’=>false)).’>’;
    echo $content;
    echo ‘</div>’;

    /* Let’s show our custom fields here */

    $destino_web = get_post_meta( get_the_ID(), ‘web’, true);
    $destino_telefono = get_post_meta( get_the_ID(), ‘telefono’, true);
    $destino_precio = get_post_meta( get_the_ID(), ‘precio’, true);
    $destino_horario = get_post_meta( get_the_ID(), ‘horario’, true);

    if( ! empty( $destino_web ) ) { echo ‘<p><strong>Web:</strong><a href=”‘ . $web . ‘”><?php get_the_title(); ?></a></p>’; }
    if( ! empty( $destino_telefono ) ) { echo ‘<p><strong>Telefono:</strong> ‘ . $destino_telefono . ‘</p>’; }
    if( ! empty( $destino_precio ) ) { echo ‘<p><strong>Precio:</strong> ‘ . $destino_precio . ‘</p>’; }
    if( ! empty( $destino_horario ) ) { echo ‘<p><strong>Horario:</strong> ‘ . $destino_horario . ‘</p>’; }

    /* End showing our custom fields here */`

    In the private content I also share the website URL and a Picture to give a better explanation.

    #343210

    Hey!

    You can give custom class to fields as shown here – http://i.imgur.com/xfg5JhJ.png
    and then add following code to Quick CSS field to adjust their width

    .form-half { width: 50%; }

    Cheers!
    Yigit

    This reply has been marked as private.

    Josue & Ismael,

    I’ve installed the WP Open Graph plugin. Customized the settings. And tested a post to see what is coming through. I’m getting this using the Object Debugger for Facebook (Please note, all fields have a value except the Image field). My question is basically, what’s the problem here? I’ve used three plugins, yoast, protocol, and the open graph, and nothing is working. If your’s works then something in my settings is off. I need guidance to figure out how to fix. I just have no idea where to go from here. Thanks so much for your time.

    Based on the raw tags, we constructed the following Open Graph properties
    fb:admins Array of length: 1
    ⍾ 1597440475
    fb:app_id 718037448250634
    og:url http://www.faithfamilylifeandotherthings.org/
    og:type website
    og:title Faith, Family Life & Other Things
    og:locale en_us
    og:image
    og:description Mentoring Women. Inspiring Hearts. Loving Jesus.
    og:site_name Faith, Family Life & Other Things
    og:updated_time 1414440955

    #341170
    datadirt
    Participant

    Hi,

    is there a way to change the input colors in form fields?

    I asked this question some time ago and got this quick css code as an answer:

    .page-id-51391 .avia_ajax_form input, .page-id-51391 .avia_ajax_form select{
        color: #000000 !important;
    }

    Works nicely on all fields – except for the large text input field, where the color is still gray instead of black:
    http://blog.datenschmutz.net/kontakt/

    I also wonder if it’s possible to change this setting for *all* forms (instead of using the page IDs).

    #340946
    kevinmamaqi
    Participant

    Hello,

    I am using Pods Framework to create and manage a CPT called Destinos. I am using 5 custom fields and has archive is set as true. I am using the WordPress Categories to organize my CPT:

    London > Museums > My CPT, but in the Breadcrumbs the parent cattegory doesn’t appears, instead, the Custom Page that I am using to display my latest post is linked and the parent URL is the archive page of my CPT.

    I’ve tried to modify the class-breadcrumbs.php following this topic: https://kriesi.at/support/topic/breadcrumbs-with-custom-post_types/ but it doesn’t work.

    #340899

    Dear Josue,

    Thanks for pointing the right place for modification. I use page template check and following codes work for me.

    		//overwrite with custom fields if they are set
    		$post_id = avia_get_the_id();
    		if ( is_page_template( 'template-gsir.php' ) )   $settings['header_shrinking'] = 'av_header_shrinking_disabled';

    Many thanks!
    Zaw Zaw

    #340897

    Hi!

    Thank you for the update.

    You can’t use php codes inside the code block element and shortcodes are not recommended as you can see on the note:

    Enter some text/code. You can also add plugin shortcodes here. (Adding theme shortcodes is not recommended though)
    

    The get_field function is not a native theme function. Did you get this from advance custom fields plugin? Please contact the plugin author regarding the issue. I’m sorry but we don’t provide support for third party plugins.

    Regards,
    Ismael

    DuriaGlobal
    Participant

    Dear Enfold Team,

    is it possible that when customer goes to cart the checkbox of “delivery to other address” is unchecked. So that these delivery to other address fields by default do not appear. They only should appear, when customer clicks on the checkbox.

    Another question would be. In the address mask, is it possible to remove the field “Appartment” as our fulfiller DHL does not use this field.

    Thanks!

    Rgds
    Andreas

    #338163

    Hi addwebtoday!

    Thank you for using Enfold.

    Please check the page’s Layout > Title Bar Settings. You can also change that option via Custom Fields. Look for header_title_bar then set the value to title_bar_breadcrumb.

    Regards,
    Ismael

    #337587

    Hi Zaw Zaw,

    Open /enfold/functions-enfold.php and look for this lines:

    //overwrite with custom fields if they are set
    $post_id = avia_get_the_id();
    

    Replace them by this:

    //overwrite with custom fields if they are set
    $post_id = avia_get_the_id();
    if($post_id == 3847) $settings['header_shrinking'] = 'av_header_shrinking_disabled';

    You can also put the whole modified avia_header_setting function in your child theme functions.php file.

    Regards,
    Josue

    tharzzan
    Participant

    Hi,

    I would like to upload content and setup layout / categories … setting using CSV file, using WP All Import Plugin. Basically, I’m trying to setup all the settings using spreadsheet (so that I don’t miss anything), and then use WPAI to import those settings. WPAI will then dynamically set everything up for me based on my preference in the CSV files. However, I found some fields that I can’t be updated using WPAI plugin.

    A while ago I contacted WPAI support to help me setup the parent / child relationship of each page, that can’t automatically be setup using CSV; and they offer me a code (in functions.php) to get around that limitation. Basically what I had to do was to create a custom field, and then use the code below so that the plugin can automatically map the custom field with the “parent” field.

    Could you please help me modify the following code, so that it can work with some other fields in the portfolio page? Thank you :)

    So, here’s the code:

    
    add_action('pmxi_saved_post', 'set_parent_page', 10, 1);
    
    function set_parent_page($pid){
        $page = get_post($pid);
        if ( ! empty($page) ){
             $parent_page = get_post_meta($pid, '_tmp_parent_value', true);
             if ( ! is_numeric($parent_page) ){
                 $parent = get_page_by_title($parent_page);
                 if (! empty($parent)){
                     $parent_page = $parent->ID;
                 }
             }
             if ( is_numeric($parent_page) ){
                 wp_update_post(array(
                     'ID' => $page->ID,
                     'post_parent' => $parent_page
                 ));
             }
             delete_post_meta($pid, '_tmp_parent_value');
        }
    }
    

    In the example above, I have to create a custom field called “_tmp_parent_value”.

    What I want to automatically setup in the portfolio item, are the following:
    1. Tags
    2. Portfolio Categories
    3. Layout (Select the desired Page layout)
    4. Sidebar Setting (Choose a custom sidebar for this entry)
    5. Title Bar Settings (Display the Title Bar with Page Title and Breadcrumb Navigation?)
    6. Footer Settings (Display the footer widgets?)
    7. Breadcrumb parent page (Select a parent page for this entry. If no page is selected the them will use session data to build the breadcrumb.)

    Thanks again :)

    #335755

    Great I didn’ t see your answer.
    It is a good idea, but how do i modify the contact form.
    Cause the form was not to send email.
    Pkus how can i modify the form itself, i would like to be able to customize it more, abd add regex for the fields and javascript.
    Thank you for your help.
    It is really appreciated.
    Regards.

    No,
    the page you see is printed out from different custom fields. It’s not built with the visual composer

    I can’t use the visual composer (and save a template with that) for 2 reason:

    1 – if in the future I want to change the layout I will have to manually change all the 100+ entries.
    2 – This content is user generated and I don’t want the users to fiddle around with the visual composer. It’s much easier for them to just fill in the custom fields.

    If you can tell me if there is some js I can include in the page to have the proper “switch to accordion” with the tabs built with the html structure instead of the shortcode, it woul be really great :-) (refer to the original post to see exactly what the problem is)

    Thank you!

    best :-)

    #331945

    In reply to: Contact Form Styling

    Thank you very much! When you get a chance can you take a look at that same page. I have added another form field toward the top of the page using Ninja Forms. It may allow us to customize the fields more easily but there appears to be an issue removing the additional space below the form elements. Any tips on how to get the spacing closer to the way it is in the lower Color Section?

    #331002
    domvitz
    Participant

    I’ve had a plugin created that allows me to add custom type posts to the site, they are not posts or pages but I would like to know how I can get the side social buttons to appear on these as they to in normal posts. Is this possible?

    Thanks

Viewing 30 results - 1,411 through 1,440 (of 1,619 total)