Forum Replies Created

Viewing 30 posts - 8,521 through 8,550 (of 11,187 total)
  • Author
    Posts
  • in reply to: Links in header question #899701

    maybe this way:

    function after_head_image_func(){
    	echo "<div class='custom_content'><a href='tel:+12345'><img src='//homeurl//wp-content/uploads/2018/01/telephone.png'></a></div>";
    	echo "<div class='custom_content2'><a href='mailto: (Email address hidden if logged out) '><img src='//homeurl//wp-content/uploads/2018/01/email.png'></a></div>";
    	echo "<div class='custom_content3'><a href='url' target='_blank'><img src='//homeurl//wp-content/uploads/2018/01/zl-group.png'></a></div>";
    }
    add_action('ava_after_main_menu', 'after_head_image_func');

    remove the blank target if you like

    but it was an interesting question anyway .
    it must be possible to set up a pair of logos for a specific page.
    One for non transparent mode and one for transparency case.

    ?
    maybe via $addition ?

    • This reply was modified 7 years, 1 month ago by Guenni007.
    in reply to: Enfold 4.2.1 Self-Hosted Video Bug #899526

    i will go back for some customers to 4.12 allthough the burger-menu is not perfect there.

    well – he is talking about the alternate logo on subtext ( logo for transparent mode)
    header_replacement_logo

    he wants a different alternate logo on some pages

    in reply to: Enfold 4.2.1 Self-Hosted Video Bug #899035

    https://kriesi.at/support/topic/enfold-4-2-1-and-videobackground-no-improvement/

    i posted it allready a few minutes earlier. – if you like you can close mine and we continue here.

    The point why it is so important that self-hosting works too – is that i don’t like surprisings for my customers. If video is gone on youtube or a different video is shown instead etc. pp .
    And i don’t like the slow start with a black background beginning.

    • This reply was modified 7 years, 1 month ago by Guenni007.
    in reply to: Enfold 4.2.1 and videobackground no improvement #898990

    but it seems only to be a problem on self-hosted videos – a youtube video works
    but only if you use the normal code. If you take an embed code it does not load the video too

    in reply to: Links in header question #898946

    can you post that with code function here – if you use that little “code” tag above the code is visible at all without beeing changed by board soft.
    Or do you like to have the link on the whole inner content?

    you can use than: <div class="custom_content"><a href='#' target='_blank'>Custom Content</a></div>

    so how to use: click code on top of the editor window – insert your code and press after that the closing code tag
    or insert your code – activate the whole code with your mouse as if you like to copy it – press once the code button.

    in reply to: Previous / Next at the bottom #898549

    you mean the prev / next navigation on the side when a post/portfolio single is opend?

    this rule is for shifting these “navigation-buttons”:

    #top .avia-post-nav, #top .avia-post-prev {
        top: 55%;
    }

    you can even do this:

    #top .avia-post-nav, #top .avia-post-prev {
        bottom: 50px !important;
        top: inherit;
    }
    in reply to: Change open tab via Main-Menu #898543

    can not confirm this – on my installation – even if on top in the url window a different tab is opend-
    i can open the another tab even over menu link.

    By the way this to functions.php of your child-theme – to have customised tab hashes:

    add_theme_support('avia_template_builder_custom_tab_toogle_id');

    in reply to: Atributos alt en galeria #898519

    go to Dashboard – media and click on one image
    on the right side there are a lot of input-fields you can customise – and alt attr. too.
    you can do it one after the other there on clicking the arrows right top to go to the next image.

    or if you have put in your gallery images you can click on each . under the image there is a description
    right side there is alt text for each

    click to enlarge

    in reply to: Links in header question #898516

    can you post the code you inserted in functions.php ?
    if you want to obfuscate your url set in f.e. //homeurl/… or something like that

    in reply to: Add social icons to footer widget (not socket) #898506

    or if you like to generate a social-bookmarks shortcode add this to functions.php of your child-theme:

    
    function social_bookmarks_shortcode() {
      $social_args = array('outside'=>'ul', 'inside'=>'li', 'append' => '');
      echo avia_social_media_icons($social_args, false);
    }
    add_shortcode('social-bookmarks', 'social_bookmarks_shortcode');

    you can insert the social bookmarks than with the shortcode:
    [social-bookmarks]

    after that you have to style them via quick css

    in reply to: Add social icons to footer widget (not socket) #898501

    yes this will work – if you like to have a real widget you can do this to
    functions.php of your child-theme:

    function social_bookmarks_register_widget() {
    register_widget( 'add_social_bookmarks' );
    }
    add_action( 'widgets_init', 'social_bookmarks_register_widget' );
    
    class add_social_bookmarks extends WP_Widget {
    public function __construct() {
      $widget_ops = array(
        'classname' => 'socialbookmarks-widget', 
        'description' => __('A widget that displays the social bookmarks', 'avia_framework') 
        );
      parent::__construct( 'add_social_bookmarks', THEMENAME.' Social Bookmarks', $widget_ops );
    }
    
    public function widget( $args, $instance ) {
      $title = apply_filters( 'widget_title', $instance['title'] );
      echo $args['before_widget'];
      //if title is present
      if ( ! empty( $title ) )
      echo $args['before_title'] . $title . $args['after_title'];
      //output
      echo $before_widget;
      $social_args = array('outside'=>'ul', 'inside'=>'li', 'append' => '');
      echo avia_social_media_icons($social_args, false);
      echo $after_widget;
    }
    
    public function form( $instance ) {
      if ( isset( $instance[ 'title' ] ) )
      $title = $instance[ 'title' ];
      else
      $title = __( 'Social Bookmarks', 'avia_framework' );
      ?>
      <p>
      <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
      <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
      </p>
      <?php
    }
    
    public function update( $new_instance, $old_instance ) {
      $instance = array();
      $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
      return $instance;
    }
    }

    and this to quick css:

    #top .socialbookmarks-widget .social_bookmarks {
        float: left;
        margin: 15px 0 0 ;
        position: relative;
    }
    
    #top .socialbookmarks-widget .social_bookmarks li {
        float: left;
        clear: right !important;
    }

    you will have than a social bookmark widget.
    it shows all of your scocial bookmarks from the options dialog of enfold. – You have the choice to give it a heading like on every other widget .

    see here in footer : Link

    in reply to: Lessen the shrink size of the header when scrolling #898495

    but the one : https://kriesi.at/support/topic/shrinking-of-header-amount-an-info/ you did not find :wink

    the shrink function is a part of avia.js – so if you like to have the same behavior there will be no other way to influence the js – because the function is bound to scroll event.

    • This reply was modified 7 years, 1 month ago by Guenni007.
    in reply to: When will it be – the update #898377

    Great – i this case i do not have to downgrade for that customer the whole installation ( its a multisite) – but the video-element is important for them – more like a good styled menu (with images etc.)
    to get rid of them in the mobile menu it is important for me to have the possiblity to adress each menu-item easier than by nth-child options.
    Can be closed now.

    in reply to: Child theme not working entirely ans as expected ! #897984

    A child-theme uses all the properties of the parent-theme. It inherits the parent theme. It just adds properties, or you can add your own templates. A header.php in the child-theme folder f.e. would completely replace the header.php of the parent theme.
    The functions.php of the child-theme is the big exception and central starting point for changes in the parent topic. Only with special functions it can replace functions of the parent-theme functions.php. The normal case is the addition of functions.
    So on that case everything is o.k. with your installation. The child-theme uses all the files of your parent-theme.

    For answering to your woocommerce problem – i had to see the installation details. So it is better you wait here for mod to come and have a look to your installation. So please write your login data into the private content. i guess it is only a misunderstanding the role of the child-theme and how it works in combination with the parent-theme

    in reply to: When will it be – the update #897463

    thanks – is there an approximate date for the “post-4.2-Update”?

    in reply to: Child Theme version #896663

    the version of the parent theme determines the capabilities of your child-theme – so no need to update the child – let it on version 1

    or Mods – this might be a nice position for a hook if header is left or right layout for next update

    by the way Günter here on Board created a filter which might be implemented in the next Enfold (4.2.1 ?) https://kriesi.at/support/topic/a-way-to-have-an-own-register-backend-advanced-styles-php-in-child-theme/

    dann ist es wahrscheinlich möglich die veränderte helper-main-menu.php im child-theme zu lassen und diese über functions.php des Child-theme einzubinden.
    Dann melde ich mich nochmal hier.

    Please Mods : let this thread open for future modifications.

    Also es gibt dort keinen widget bereich der vorgesehen ist.
    Man kann einen dort hinbasteln. Leider geht die Einstellung dann beim nächsten Update verloren

    ich habe in die helper-main-menu.php oberhalb der Zeile 151 (Enfold 4.2) :
    $main_nav = "<nav class='main_menu' data-selectname='" …

    folgendes eingefügt:

    ob_start();
    do_action('ava_before_nav_on_header_left'); 
    $output .= ob_get_clean();

    hochladen des ganzen in den Original Folder includes.

    Dann kann man mit :

    add_action( 'ava_before_nav_on_header_left', 'enfold_customization_header1_widget_area' );
    function enfold_customization_header1_widget_area() {
      dynamic_sidebar( 'header1' );
    }

    einen header1 widget bereich bei Widgets anlegen, der in der Position ist – Beispielseite: https://webers-testseite.de/bernhard/

    Es ist dann ratsam den Abstand nach links dem Menu anzupassen (allerdings mit padding)

    #header_main .widget {
    padding-left: 13%;
    padding-right: 5%;
    }

    ich kann dir das auch hochladen: https://pastebin.com/dl/54ZRXJze

    Perhaps a mod could help here to make it via child-theme “helper-main-menu.php” – i don’t know how.

    ah – ok if you have that header setting: https://kriesi.at/themes/enfold-consulting/
    there might be a solution !

    Let me see …

    by the way – i created a hook into helper-main-menu.php between logo and menu. But all calculations of header-height and scroll-offset including shrink function and and … are invalid than. So it realy makes no sense. On positioning absolute – you can take the other hooks aswell.
    But see here on relative position: https://webers-testseite.de/impressum/
    i placed a google map widget inbetween – and you see what happens to main content ! with the color-section (50% height) on the top.

    • This reply was modified 7 years, 1 month ago by Guenni007.
    in reply to: author link in loop-index.php #896323

    thanks thats it – i added this to functions.php of child-theme:

    function no_link_on_author_image(){
    ?>
    <script>
    (function($){
        $(window).load(function() {
    		    $("a.post-author-format-type").replaceWith(function(){
    		        return $("<span class='post-author-format-type'>" + $(this).html() + "</span>");
    		    });
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'no_link_on_author_image');

    but on doing that the span.image-overlay is overlapping the content besides -#
    and so the links to the posts are not clickable !
    To avoid that i put in quick css:

    .post-author-format-type .image-overlay.overlay-type-extern {
        display: none;
    }

    Thanks – can be closed

    • This reply was modified 7 years, 1 month ago by Guenni007.

    the advanced layout builder ( short alb) has an element called Widget Area.
    You can drag&drop this to where ever you like in your content ! On that widget area alb element you have than the choice which widget should be displayed.

    what kind of header have you choosen for your layout ?
    Header on top and navigation under it?

    • This reply was modified 7 years, 1 month ago by Guenni007.
    in reply to: When will it be – the update #896286

    i set it this way up to show the fallback image – but
    on Safari / OSX High Sierra – same troubles ( IMac, MacMini too) – no background video at all

    in reply to: Theme update fails #896154

    i do allways update enfold via ftp – exactly to avoid these things.
    It can always come to a server interruption – and an updates fails.
    If you are using a child-theme – there will be no risk to completely erase the enfold folder and upload a new one.
    ( Or to rename the enfold folder to enfold-old and upload the new one – than you can switch back if you have some troubles with the new one)
    the dynamic content like your settings of enfold are in wp-content folder (wp-content/uploads/dynamic-avia) (and even layerslider is out of theme directory).
    On the same reason i do prefer WP Updates be doing it manually ( but here via Dashboard) – because i like to read about bugs before i update my WP.

    in reply to: Menü auf einzelner Seite im Code rausnehmen #896143

    ich sehe in deinem Beispiel auf github wie ich es auf einer speziellen Seite komplett verhindere,
    aber wie würde ich Teile des definierten Menus entfernen oder gar neue hinzufügen ?

    in reply to: Menü auf einzelner Seite im Code rausnehmen #896142

    Hi Günter – ich sehe, dass im momentanen Enfold 4.2 line 187

    /**
     * Allow to modify or remove main menu for special pages
     * 
     * @since 4.1.3
     */
    $output .= apply_filters( 'avf_main_menu_nav', $main_nav );

    das Filter vorgesehen ist.
    Wie nutze ich das jetzt um zB auf einer speziellen Seite das Hauptmenu zu manipulieren?

    Danke

    by the way – you can find those hooks on enfold – search for do_action in the enfold folder.
    on your helper-main-menu.php there are 6 do_actions to find ( one is for header left right position only)

    avia_meta_header
    ava_main_header
    ava_main_header_sidebar
    ava_before_bottom_main_menu
    ava_inside_main_menu
    ava_after_main_menu

    sometimes they got comments before the do_action like f.e.: Hook that can be used for plugins and theme extensions
    you see the code – the add_action concerns to the do_action rules in the code. So you can insert code here like it does with the header widget

Viewing 30 posts - 8,521 through 8,550 (of 11,187 total)