Forum Replies Created

Viewing 30 posts - 7,081 through 7,110 (of 11,223 total)
  • Author
    Posts
  • in reply to: Adding caption to each slide in horizontal gallery #1018278

    what do you mean by “showing incorrectly” – i see this :

    in reply to: child-theme solution for change an avia_element ? #1018223

    could it be possible to globaly find an expression and replace it with another one in the whole $avia_elements without defining a slug and id.
    it is twice the same expression to change.?

    By the way : wasn’t it a good idea to have this on default : That preview shows on top the inserted uploaded logo ?

    in reply to: child-theme solution for change an avia_element ? #1018190

    Yes that was the right hint :

    function change_pr_logo_path( array $avia_elements = array() )
    {
    	$slug 	= "menu";
    	$id 	= 'main_menu_preview';
    	$index = -1;
    	
    	/** Find index of element to change*/
    	foreach( $avia_elements as $key => $element ){
    		if( isset( $element['id'] ) &&  ( $element['id'] == $id ) && isset( $element['slug'] ) && ( $element['slug'] == $slug ) ){
    			$index = $key;
    			break;
    		}
    	}
    	
    	/*** If key not found, return unmodified array*/
    	if( $index < 0 ){return $avia_elements;}
    
    	/*** Make your customizations*/
    	$new = str_replace(
    		"<img id='pr-logo' src='".AVIA_BASE_URL."images/layout/logo_modern.png' alt=''/>", 
    		"<img id='pr-logo' src='".get_stylesheet_directory_uri()."/logo_modern.png' alt='MyLogo'/>", 
    		$avia_elements[ $index ]['std']);
        $avia_elements[ $index ]['std'] = $new ;
    
    	/*** Return modified */
    	return $avia_elements;
    }
    add_filter( 'avf_option_page_data_init', 'change_pr_logo_path', 10, 1 );

    _______

    but now i see – there is it twice ! it is on :

    "slug"	=> "header",
    "id" 	=> "default_header_target",

    too !
    is there a way to have this function not twice but to make an array to run this for both slugs and ids ?

    and the aim is : to insert the uploaded logo into this replacement

    in reply to: Adding caption to each slide in horizontal gallery #1018026

    Why have you entered it to title tag: Click to show details – if you don’t want it?
    edit: ok i see this is added by the theme – it comes from gallery_horizontal.php line 421
    but best would be to make it via translation file – this is not translated in most of the lang files but you can add it.

    Or which should work always – do this to child-theme functions.php:

    function my_text_strings( $translated_text, $text, $domain ){
    switch ( $translated_text ){
        case 'Click to show details':  $translated_text = __( 'more about', $domain );
        break;
      }
      return $translated_text;
    }
    add_filter('gettext', 'my_text_strings', 20, 3);
    in reply to: Remove quotation marks in Audio Player #1018024

    You put it in the functions.php of your parent theme at the very last entry

    you can try it after the place where this is listed:

    
    /*
     *  register custom functions that are not related to the framework but necessary for the theme to run
     */

    but – as said before these entries are definitly lost on next enfold update.
    On editing such important files – please be sure you got ftp access – to make a rollback if needed.
    a missing semicolon or wrong Quotation Marks and you can not edit it via dashboard ( because white screen of death).

    in reply to: Move Thumbnail next to excerpt just like in our demo #1017803

    i think the thing is that you have on blog single author small – no sidebar !
    If you got one the featured images goes to the left !
    But if you give that page a sidebar and remove it with quick css the layout will be this way:
    But to have this not on your whole site – and only for that page you should be more specific on that.
    I tested it with my page 33574

    
    .page-id-33574 #main main.content {
        width: 100% !important;
        border-right: none !important
    }
    
    #top.page-id-33574 #main .sidebar {
        border-left: none !important;
        display: none !important;
    }
    in reply to: Google Maps Problem: For development purposes only #1017779

    i got this yesterday too – allthough i have my billing information allready set for the api, they have to be renewed – because of some changings.
    After that all works as before.
    So accept and renew billing information on google

    If you got that error log with the retired version you can do this to child-theme functions.php til next Enfold update

    function avia_maps_version_number( $api_src ){
        $api_src['version'] = '3.34';
        return $api_src;
    }
    add_filter( 'avf_google_maps_source', 'avia_maps_version_number', 10, 1);
    in reply to: Images open in new tab instead of lightbox #1017725

    Question – do you have a child-theme header.php ?
    If so there is on header.php some new lines concerning to lightbox behavior. So if you got a header.php copy of an older version in it this could be the reason.

    in reply to: child-theme solution for change an avia_element ? #1017449

    The reason for looking on that was a question here on board to totaly customize the branding of the theme.
    To rename the theme and child-theme ; to have the style-sheet name customized etc. Even the nolink was easy to substitute. But this little logo and pr-logo is hard to replace on a child-theme manner.

    Looks this way:

    • This reply was modified 6 years, 5 months ago by Guenni007.
    in reply to: Menu in 2 lines #1017185

    with a non shrinking header it is easy – see above
    shrinking header – see testpage – if this meets your expectations, then I can offer the solution here on occasion.

    in reply to: Change Color Palette #1017027

    by the way i would like to know a child-theme solution for that here: https://kriesi.at/support/topic/change-color-palette/#post-1016276

    to have a second row f.e. with colors i like and do often use on my installations.

    on avia-modal.js i can see on line 389ff this $.AviaModal.register_callback.modal_load_colorpicker = function()
    but how to add a second palettes row over child-theme functions.php

    in reply to: Removed debug info in theme’s functions.php #1017016

    i did it here : but why ?
    even if you are going to the well known style.css path of the renamed theme folder – there will be only Guennis Infos.
    https://webers-testseite.de/neu/datenschutz/

    by the way this is only neccessary if you are not working with a child-theme

    add_filter('avia_dyn_stylesheet_file_path', 'avia_change_filename');
    function avia_change_filename($stylesheet){
    return 'myfilename.css';
    }
    in reply to: Removed debug info in theme’s functions.php #1016988

    i do not know the other codes – i use it – when i need it:

    if(!function_exists('avia_debugging_info')){
      function avia_debugging_info() {
        // 
      }
    }

    is that obsolete? – No it still works – tested it few minutes ago (refresh all caches and merging in Enfold)

    you can get rid of every function or overwrite it in your child-theme functions.php when it starts in original source code with:
    if(!function_exists('…'))

    by the way there was a filter to rename the Theme and child-theme :

    /** All of the Styling options you set in the theme’s Styling options get saved to a file in your uploads folder / dynamic_avia called enfold.css.
    If you have changed the theme name or something like that you may want to re-name this file to better reflect your own branding ( :LOL dear Brand). You can use the following function to do just that: */

    add_filter('avia_dyn_stylesheet_file_path', 'avia_change_filename');
    function avia_change_filename($stylesheet){
    return 'myfilename.css';
    }

    ___________ offtopic ___________
    So – I don’t mind that my customers know which WordPress theme I’m using. On the contrary, a theme that is so well distributed and has a strong community is more of a good selling point.
    Of course, if you want to present the beautiful styles and layout possibilities as your own achievements, branding is a hindrance.
    For my part, I recognize an enfold page even without branding at first glance in the source code. The classes and IDs are so clear that you have to invest a lot of work to obfuscate a topic there.

    in reply to: Problem font #1016777

    See here a nice thing concerning to google fonts – and embedding localy:

    https://google-webfonts-helper.herokuapp.com/fonts/oxygen?subsets=latin

    you can copy this and put it in a css – call it maybe oxygen.css:

    /* oxygen-300 - latin */
    @font-face {
      font-family: 'Oxygen';
      font-style: normal;
      font-weight: 300;
      src: url('../fonts/oxygen-v7-latin-300.eot'); /* IE9 Compat Modes */
      src: local('Oxygen Light'), local('Oxygen-Light'),
           url('../fonts/oxygen-v7-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
           url('../fonts/oxygen-v7-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
           url('../fonts/oxygen-v7-latin-300.woff') format('woff'), /* Modern Browsers */
           url('../fonts/oxygen-v7-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
           url('../fonts/oxygen-v7-latin-300.svg#Oxygen') format('svg'); /* Legacy iOS */
    }
    
    /* oxygen-regular - latin */
    @font-face {
      font-family: 'Oxygen';
      font-style: normal;
      font-weight: 400;
      src: url('../fonts/oxygen-v7-latin-regular.eot'); /* IE9 Compat Modes */
      src: local('Oxygen Regular'), local('Oxygen-Regular'),
           url('../fonts/oxygen-v7-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
           url('../fonts/oxygen-v7-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
           url('../fonts/oxygen-v7-latin-regular.woff') format('woff'), /* Modern Browsers */
           url('../fonts/oxygen-v7-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
           url('../fonts/oxygen-v7-latin-regular.svg#Oxygen') format('svg'); /* Legacy iOS */
    }
    
    /* oxygen-700 - latin */
    @font-face {
      font-family: 'Oxygen';
      font-style: normal;
      font-weight: 700;
      src: url('../fonts/oxygen-v7-latin-700.eot'); /* IE9 Compat Modes */
      src: local('Oxygen Bold'), local('Oxygen-Bold'),
           url('../fonts/oxygen-v7-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
           url('../fonts/oxygen-v7-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
           url('../fonts/oxygen-v7-latin-700.woff') format('woff'), /* Modern Browsers */
           url('../fonts/oxygen-v7-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
           url('../fonts/oxygen-v7-latin-700.svg#Oxygen') format('svg'); /* Legacy iOS */
    }
    

    download the fonts here: https://google-webfonts-helper.herokuapp.com/api/fonts/oxygen?download=zip&subsets=latin&variants=300,700,regular

    after that you might enqueue the css file

    in reply to: Problem font #1016771

    can you please try to write the font-family rule everywhere you have inserted it in the manner Google said:

    f.e.:

    body.oxygen {
        font-family: 'Oxygen',sans-serif;
    }

    maybe it is casesensitive ! – and pleas with quotation marks !

    And the most important : i believe your font isn’t realy good implemented.
    i can not found any @font-face rule or something like this in your source code concerning to Oxygen

    die Geschichte hier: https://webers-testseite.de/edited-enfold-alb-elements/
    ist eigentlich nerd sicher dort beschrieben – ja auch das steht da – man muss dann einen child-theme shortcodes folder machen. Und dort kommen die bearbeiteten Versionen hinein. Damit Enfold weiß, das es dann nicht mehr die original Datein benutzen soll, ist das snippet Link da.
    Vorteil – bei den Slidern – du kannst in den Alb elementen wählen welchen Tag du möchtest. Also auch das du bei Caption 1 einen h1 und bei den anderen dann h2 oder was anderes haben willst.
    Bei den Slidern ist nur die Bedingung das alle 4 Elemente immer gleichzeitig ersetzt werden müssen.
    Die Zentrale Datei : av-helper-slideshow.php regelt das Markup für alle drei Slider.

    Nein – bei der functions.php Lösung werden dann aber auch alle slideshow h2 in h1 konvertiert.
    Das will halt nicht jeder.
    In der Tat hatte ich es diesesmal vergessen zu schreiben – das kommt in die child-theme functions.php

    Generell ist es gut sich mit den Developer Tools der einzelnen Browser vertraut zu machen. Früher gab es den Firebug als Plugin für Firefox – heute bringt fast jeder moderne Browser solche Tools mit.
    Meist kann man mittels context menu (rechte Maustaste – oder eben rechte Maushälfte (bei Magic Mouse Apple)) und sowas wie Untersuchen diese Infofenster öffnen. zB – wenn ich über deinen Nick hier an Board die Maus bewege, und mittels Context Menu dann auf untersuchen gehe springt bei mir ein extra Fenster auf:
    bild klicken um es zu vergrößern-

    Du siehst jetzt hier , dass dein Nick ein anker ist mit der Klasse: bbp-author-name – der Avatar da drüber hat die Klasse: bbp-author-avatar etc.
    Rechts in der Leiste findest du oben rechts meist die Inline css – dann die css entsprechend der Kaskade mit den geerbten eigenschaften.
    Und das geniale an der Geschichte ist, dass man rechts jetzt neuen Code einfügen kann, oder bestehenden abändern kann (natürlich nur virtuell).
    So kann man sehen ob die Css die man sich so ausdenkt auch greift. Manchmal ist es allerdings nötig entweder sehr spezifische CSS rules zu erstellen oder die Eigenschaft auf !important zu stellen.
    da Enfold manchmal in den Themeneinstellungen das div #top mit enthält ist ein div recht gewichtig : siehe Spezifität Rechner: https://specificity.keegan.st/

    in reply to: delete Enfold logo #1016679

    do this to quick css :

    .logo { display: none !important }

    in reply to: Adding caption to each slide in horizontal gallery #1016678

    So – not for that
    And Yes – it is always better to have a live link.
    Your Caption talking let me come to a solution which your source code does not have. – You see on the images where the caption is on Galleries.

    in reply to: Remove quotation marks in Audio Player #1016677

    you can see here some info about Child-theme and you can download a predefined Child-Theme.
    There is allready – at the beginning nearly empty – a functions.php in it.

    https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/

    in reply to: Remove quotation marks in Audio Player #1016675

    no – do not edit that file. The setting is a wordpress setting and not an enfold setting:
    all you have to do is read carefully:

    or for copy paste look here:
    https://pastebin.com/gc8xNnQb
    so put this to your child-theme functions.php

    if you are not working with a child-theme – a lot of those fine snippets here on board are harder to apply – and are lost on next enfold update. So it is a good thing to know how to setup a child-theme

    in reply to: Adding caption to each slide in horizontal gallery #1016668
    function horizontal_gallery_subline(){
    ?>
    <script>
    (function($){
        $(window).load(function() { 
            $('.av-horizontal-gallery-link').css('bottom', '30px');        
            $('.av-horizontal-gallery-img').each(function(){
                var imgTitle = $(this).attr('title'); 
                $(this).after('<p class="text-under-image">' + imgTitle + '</p>');
                $(this).css({
                    'padding-bottom' : '20px',
                    'background-color' : 'transparent',
                });
                $('.text-under-image').css({
                    "text-align": "center",
                    "margin": "-20px 0",
                    "color": "#000",
                });
            });
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'horizontal_gallery_subline');
    • This reply was modified 6 years, 5 months ago by Guenni007.
    in reply to: Adding caption to each slide in horizontal gallery #1016664

    Please remove the code i gave you – then i can better test a different one on web-developer tools:

    i see on my page that it is working now with that nested construct:
    https://webers-testseite.de/horizontal-gallery/

    in reply to: Adding caption to each slide in horizontal gallery #1016656

    Edit: i see what is the fact – but we need to have the overflow visible to see the sublines.
    I will have a look if it is possible to place the sublines out of the container.

    • This reply was modified 6 years, 5 months ago by Guenni007.
    in reply to: Adding caption to each slide in horizontal gallery #1016651

    so remove the code
    and see if your nested construct will work without code anyway.
    Because you have horizontal gallery in tab-section ? isn’t so – so first try your construction
    If it works – then insert this instead:

    • This reply was modified 6 years, 5 months ago by Guenni007.
    in reply to: Menu in 2 lines #1016580

    this will be the right way – but i tested it on shrinking header – there must be new rules than to add.
    Just a moment …

    edit: what kind of header setting do you have?
    The one with the shrinking header is a bit complex – because we had to edit: avia-snippet-sticky-header.js

    in reply to: Menu in 2 lines #1016575

    in this case i would it do the way you do ( with a br inbetween the lines) but give the menupoint a custom class.
    Do you know how to?
    On menu there is on top of the window in the right corner a flyout “Screen Options”
    – there you have “Show advanced menu properties” – mark : CSS Classes.
    So now you can give to each menupoint a custom class.
    i gave to the concerning menu-point the class: twoliner

    try than the following values in your quick css:

    .twoliner a {
        line-height: 25px !important;
    }
    
    .twoliner a {
        line-height: 25px !important;
        height: auto !important;
        transform: translateY(50%);
        position: relative;
    }
    
    .twoliner .avia-menu-fx {
        bottom: -3px !important;
    }

    these have to be adjusted to your dimensions. If we can see a link it would be more easy to advice
    you can see it here on the right side of my testpage menu: https://webers-testseite.de/

    if you like to have the text centered add the rule to the anchor element .twoliner a :
    text-align: center;

    in reply to: Menu in 2 lines #1016558

    Multiline Menus See here: https://kriesi.at/documentation/enfold/menu/#multiline-menu

    by the way – if you like to have the menu floats right:
    set that rule to
    justify-content: flex-end;

    in reply to: Feature request: Custom section types #1016363

    by the way : for custom color schemes i would take this to child-theme functions.php:

    https://kriesi.at/support/topic/change-color-palette/#post-1016286

    in reply to: Feature request: Custom section types #1016361

    hi Yigit : in register-admin-options.php is still the wrong Sequence

    this is the right order:

    //required for the general styling color schemes
    include('register-backend-styles.php');
    
    //required for the advanced styling wizard
    include('register-backend-advanced-styles.php');
    
    // Allow to include a user defined file to add or alter backend styles
    $custom_path = apply_filters( 'avf_register_custom_backend_styles', '' );
    if( ! empty( $custom_path ) && file_exists( $custom_path ) ){
    	include_once $custom_path;
    }

    the new filter is on new Enfold 4.4.1 again over :

    //required for the general styling color schemes
    include('register-backend-styles.php');
    
    //required for the advanced styling wizard
    include('register-backend-advanced-styles.php');

    And with this sequence it will not work !
    Check it out for yourself – i told it again – but it is always forgotten till now

Viewing 30 posts - 7,081 through 7,110 (of 11,223 total)