Forum Replies Created

Viewing 14 posts - 31 through 44 (of 44 total)
  • Author
    Posts
  • in reply to: Back-Icon in single.php #659459

    This is a good hint. But where must’ll insert this code for the back button?

    ?><div>
    <a href='javascript:history.go(-1)' onMouseOver='self.status=document.referrer;return true' class='icon-reply'  title='zurück'>
    <span class='avia_button_ico' data-av_iconfont='entypo-fontello' data-av_icon='ue830' aria-hidden='true'></span>
    </a>
    </div>
    <?php

    I have tried several places, nothing works.
    This is the Code of template-builder.php:

    <?php
    	if ( !defined('ABSPATH') ){ die(); }
    	
    	global $avia_config, $post;
    
    	if ( post_password_required() )
        {
    		get_template_part( 'page' ); exit();
        }
    
    	/*
    	 * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
    	 */
    	 get_header();
    	 
    
     	 // set up post data
    	 setup_postdata( $post );
    
    	 //check if we want to display breadcumb and title
    	 if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title();
    	 
    	 do_action( 'ava_after_main_title' );
    
    	 //filter the content for content builder elements
    	 $content = apply_filters('avia_builder_precompile', get_post_meta(get_the_ID(), '_aviaLayoutBuilderCleanData', true));
    
    	 //if user views a preview me must use the content because WordPress doesn't update the post meta field
    	if(is_preview())
    	{
    		$content = apply_filters('avia_builder_precompile', get_the_content());
    	}
    
    	 //check first builder element. if its a section or a fullwidth slider we dont need to create the default openeing divs here
    
    	 $first_el = isset(ShortcodeHelper::$tree[0]) ? ShortcodeHelper::$tree[0] : false;
    	 $last_el  = !empty(ShortcodeHelper::$tree)   ? end(ShortcodeHelper::$tree) : false;
    	 if(!$first_el || !in_array($first_el['tag'], AviaBuilder::$full_el ) )
    	 {
            echo avia_new_section(array('close'=>false,'main_container'=>true, 'class'=>'main_color container_wrap_first'));
    	 }
    	
    	$content = apply_filters('the_content', $content);
    	$content = apply_filters('avf_template_builder_content', $content);
    	echo $content;
    
    	$avia_wp_link_pages_args = apply_filters('avf_wp_link_pages_args', array(
    																			'before' =>'<nav class="pagination_split_post">'.__('Pages:','avia_framework'),
    														                    'after'  =>'</nav>',
    														                    'pagelink' => '<span>%</span>',
    														                    'separator'        => ' ',
    														                    ));
    
    	wp_link_pages($avia_wp_link_pages_args);
    
    	
    	
    	//only close divs if the user didnt add fullwidth slider elements at the end. also skip sidebar if the last element is a slider
    	if(!$last_el || !in_array($last_el['tag'], AviaBuilder::$full_el_no_section ) )
    	{
    		$cm = avia_section_close_markup();
    
    		echo "</div>";
    		echo "</div>$cm <!-- section close by builder template -->";
    
    		//get the sidebar
    		if (is_singular('post')) {
    		    $avia_config['currently_viewing'] = 'blog';
    		}else{
    		    $avia_config['currently_viewing'] = 'page';
    		}
    		get_sidebar();
    	}
    	else
    	{
    		echo "<div><div>";
    		
    	}
    
    echo avia_sc_section::$close_overlay;
    echo '		</div><!--end builder template-->';
    echo '</div><!-- close default .container_wrap element -->';
    
    get_footer();
    
    in reply to: style.css in child theme not work #659039

    Additionally I want to add Custom Classes to Elements. So I included in function.php from child-theme this code:
    add_theme_support('avia_template_builder_custom_css');
    But that also does’nt work.Why does’nt work the style.css and the function.php in the child theme?

    So the “phantom”-thumb is disappeared:
    .span.no-news-thumb {
    display: none;
    }

    Along with this code are then all thumbs disappeared:
    span.news-thumb {
    display: none;
    }

    The span-tag was the solution. Thanks for your help.

    in reply to: Latest News #658868

    Thank you for your response. It works. But the date should be remain, so I tried it with the code in the functions.php.

    in reply to: Back-Icon in single.php #658056

    At the moment this situation:
    Included in the single.php is the code. In addition, I have included a Code Block with this code below the sample post.
    The code from the single.php should insert above the article a Reply icon, what does not work. The block of code in the sample post works. But now the title of the post has disappeared. Even if I remove the code block again, the title will no longer appear. What is this effect???

    in reply to: style.css in child theme not work #657978

    Here is the Link:

    in reply to: printable page of site #657887

    Many thanks for your answer. I’ll watch the plugin.

    in reply to: Latest News #657865

    I mean the time below the post title in “Letzte Neuigkeiten” below in the right sidebar.

    in reply to: printable page of site #657863

    I want hide the header image and the left sidebar in the Enfold church theme.

    I use a child theme. But I have found that many statements are not executed there. Now I have added the CSS statements in the QuickCSS and it works! In a separate thread I have asked why this is so. But I do not have an answer yet. Do you have a response? I use the included child-theme.Thereby the quickCss area is very long and confusing.

    I mean the thumbs below in the right sidebar. We have rarely featured images. It would be better still if only one thumb appears when a featured image is present, no “phantom” thumb ;-). The link you find in the private content.
    I hope my remarks are to be understood. I use the Google translator, because my English is bad. My mother tongue is German.

    in reply to: printable page of site #657724

    I want to hide some areas in the printview.
    In Enfold theme folder I edit the custom.css, but it does’nt work:

    @media print {
    #av_section_1 {
    display:none;
    }
    #top .no_margin.av_one_third {
        display: none;
    	}
    .av-section-color-overlay-wrap {
    display: none;
    }
    }

    And how can I remove the featured images from “latest news” blog posts in the widget?
    I try this, but it does’nt work:

    .news_thumb {
    display:none !important;
    }
    in reply to: Latest News #657702

    I copied the code in my child themes funcktions.php, but it has not changed. The time is still displayed. What did I do wrong? To see the contents of the file functions.php:

    <?php
    
    /*
    * Add your own functions here. You can also copy some of the theme functions into this file. 
    * WordPress will use those functions instead of the original functions then.
    */
    function custom_time_stamp(){
    ?>
    <script>
    jQuery(window).load(function(){
     jQuery('.news-time').each(function () {
        var text = jQuery(this).text();
        text = (text.length > 15) ? text.slice(0,-9) : text;    
        jQuery('.news-time').text(text);  
    })
    });
    </script>
    <?php
    }
    add_action('wp_head', 'custom_time_stamp');
    ?>
    
    in reply to: Kalendernavigation nicht sichtbar bzw. überlagert #646660

    Danke für den Hinweis, Andy. Die Idee hatte ich auch schon, aber ich hatte Bedenken, ob der Text dann nicht an anderer STelle fehlt. Du hast mich überzeugt ;-)

Viewing 14 posts - 31 through 44 (of 44 total)