Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #918073

    Hello.

    I try to set the blog on my site:

    Firs page acts as I want – excerpt and “reed more” link
    But when I klick on category “co je nove” – http://event2all.sk.dw7.nameserver.sk/category/co-je-nove/
    it shows the first article with excerpt and “reed more” link and the second one is full article – why?

    Also – the blog is set up to show only DATE in the article.
    In categories it shows date/category/name – why?

    And when you look at this article in category “co je nove”

    it is OK – small picture – name of the article – date – full story – FB share on bottom

    but this in the same category another article:

    this is without small picture – name of the article is missing – date is missing – FB share is missing – why?

    and finally when you look at ARCHIV – http://event2all.sk.dw7.nameserver.sk/2018/02/
    it has mixed excerpts and full articles, without small pictures – with date/category/name (again)

    can you please help me wit this?
    Thanks
    Martin

    #918218

    Hey macika,
    The difference between the two posts on your categories page is because one is built with the advanced layout builder and the other is built using the default editor.
    The default editor has a built in layout and style, while the advanced layout builder doesn’t. This is so you can customize how the advanced layout builder looks with the elements.
    To only show the date on your category pages, Try this code in the General Styling > Quick CSS field:

    .archive .text-sep.text-sep-date,.archive .blog-categories.minor-meta,.archive .text-sep.text-sep-cat,.archive .blog-author.minor-meta {display:none !important;}

    For the next question about the layout of the two posts, The difference between them is again because one is built with the advanced layout builder and the other is built using the default editor.
    For the last question, the featured images don’t show on category pages, but images in the posts do if they are built with the default editor.

    Best regards,
    Mike

    #918668

    Hello MIke.

    thanks for the explanation.
    code is OK – but: now on the front page, where the date/category/name is controlled from system, is the format DATE / – can we remove this / with CSS?
    Where we removed category/date with CSS – there is everything OK.
    BTW I think this is a coding bug – when I set up the BLOG not to show category/name/etc.. there the slash at the end should be removed. – like riot CSS you send me.

    one more question: where to translate the “Share on Facebook” pop up text at the end of the story?

    It does not show up in the Loco Translate.

    and one more :)
    is it possible to remove the link from the the portfolio grid item?

    Link Handlig in editor does not allow to do this ( should be there this option ).

    With Regards
    Martin

    #918768

    Hi,
    For the homepage ” / ” Try this code in the General Styling > Quick CSS field:

    #top.home .text-sep.text-sep-date {display:none !important;}

    To change the “Share on Facebook” popup text for your Facebook social button, Please via FTP, try editing /wp-content/themes/enfold/includes/helper-social-media.php
    On line 147 Look for:

    'facebook' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "http://www.facebook.com/sharer.php?u=[permalink]&t=[title]"),

    Replace with:

    'facebook' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "http://www.facebook.com/sharer.php?u=[permalink]&t=[title]" , 'label' => __("Share on Enfold",'avia_framework')),

    Adjust “Share on Enfold” to suit.
    This is the expected results:
    2018-02-27_193837

    Best regards,
    Mike

    #919730

    Thanks Mike – both codes works perfect – but the slash appears also on the blog pages. is it possible to remove it also from other pages?
    here? :

    and here? :

    Unfortunately I need help with few other things.
    On my home page I used this custom CSS code:

    .home .container .av-content-small.units {
    width: 100%;
    }

    it makes the blog full width without side bar.
    Is it possible to make this also on this page? :

    and on this page remove the categories and archive and make the blog 100% width? :

    Best Rgards
    Martin

    #920054

    Hi,
    Please try changing the above code to look like this

    
    .text-sep.text-sep-date {display:none !important;}

    Then it will work on any page.
    For your next question, if I understand correctly, your page already looks full width. Please see screenshot in Private Content area. Perhaps this is solved of I don’t understand.
    For the last question, Try this code in the General Styling > Quick CSS field:

    
    .container .av-content-small.units {
        width: 100% !important; 
    }
    #top.post-template-default.single-post #main .sidebar {
        width: 0 !important; 
    }

    While this seems to work on the pages in question, please point to any pages it is not working correctly on.

    Best regards,
    Mike

    #920354

    Hello Mike.

    Thank you for your patience.
    Everything is OK – i applied some code earlier and do not refresh correctly.
    With the codes you send me it is solved.

    another little help needed:
    1. Is it possible to remove links from blog posts?
    2. is it possible to link portfolio pictures to open in a new tab? (example – referencie/city arena logo)
    3. is it possible make a brake in “kontakt” – see the screen shot please – system clears my break, do not know why
    link: https://drive.google.com/open?id=1uigwVdjMq6AUctog2jNCDQHjtVB-mxp0

    Best Regards
    Martin

    #920355

    correction:
    1. Is it possible to remove links from blog posts? – remove link from BLOG POST PICTURES.

    #920626

    Hi,
    1: Try this code in the General Styling > Quick CSS field:

    .blog-meta a {
    pointer-events: none!important; 
    }

    2: I added a code block to the bottom of the example page with this code:

    <script type = "text/javascript">
    jQuery('.grid-entry a').attr('target', '_blank');
    </script>

    Now the referencie/city arena logo opens in a new page.

    3: I added this shortcode for the whitespace element from the advanced layout builder:

    
    [av_hr class='invisible' height='50' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' admin_preview_bg='']
    

    Please check.

    Best regards,
    Mike

    #920834

    thanks Mike, everythink works perfect.

    is it necesery to manually back up somethink in future theme updates?

    #920851

    Hi,
    As all of these solutions were added without editing any theme files you should have no issues updating.
    * I just looked back again and see the facebook translation was done editing: /wp-content/themes/enfold/includes/helper-social-media.php
    So since you can’t override a helper function inside a child theme. The override will only work for template files such as the header.php, loops, templates etc. You can copy the whole “social icon builder” function in your child theme functions.php.

    
    if(!class_exists('avia_social_share_links'))
    {
    	class avia_social_share_links
    	{
    		var $args;
    		var $options;
    		var $links = array();
    		var $html  = "";
    		var $title = "";
    		var $counter = 0;
    		
    		/*
    		 * constructor
    		 * initialize the variables necessary for all social media links
    		 */
    
    		function __construct($args = array(), $options = false, $title = false)
    		{
    			$default_arguments = array
    			(
    				'facebook' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "http://www.facebook.com/sharer.php?u=[permalink]&t=[title]" , 'label' => __("Share with child theme",'avia_framework')),
    				'twitter' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "https://twitter.com/share?text=[title]&url=[shortlink]"),
    				'gplus' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "https://plus.google.com/share?url=[permalink]" , 'label' => __("Share on Google+",'avia_framework')),
    				'pinterest' => array("encode"=>true, "encode_urls"=>true, "pattern" => "http://pinterest.com/pin/create/button/?url=[permalink]&description=[title]&media=[thumbnail]"),
    				'linkedin' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "http://linkedin.com/shareArticle?mini=true&title=[title]&url=[permalink]"),
    				'tumblr' 	=> array("encode"=>true, "encode_urls"=>true, "pattern" => "http://www.tumblr.com/share/link?url=[permalink]&name=[title]&description=[excerpt]"),
    				'vk' 		=> array("encode"=>true, "encode_urls"=>false, "pattern" => "http://vk.com/share.php?url=[permalink]"),
    				'reddit' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "http://reddit.com/submit?url=[permalink]&title=[title]"),
    				'mail' 		=> array("encode"=>true, "encode_urls"=>false, "pattern" => "mailto:?subject=[title]&body=[permalink]", 'label' => __("Share by Mail",'avia_framework') ),
    			);
    			
    			$this->args = apply_filters( 'avia_social_share_link_arguments', array_merge($default_arguments, $args) );
    			
    			if(empty($options)) $options = avia_get_option();
    			$this->options 	= $options;
    			$this->title 	= $title !== false? $title : __("Share this entry",'avia_framework');
    			$this->build_share_links();
    		}
    		
    		/*
    		 * filter social icons that are disabled in the backend. everything that is left will be displayed.
    		 * that way the user can hook into the "avia_social_share_link_arguments" filter above and add new social icons without the need to add a new backend option
    		 */
    		function build_share_links()
    		{
    			$thumb 					= wp_get_attachment_image_src( get_post_thumbnail_id(), 'masonry' );
    			$replace['permalink'] 	= !isset($this->post_data['permalink']) ? get_permalink() : $this->post_data['permalink'];
    			$replace['title'] 		= !isset($this->post_data['title']) ? get_the_title() : $this->post_data['title'];
    			$replace['excerpt'] 	= !isset($this->post_data['excerpt']) ? get_the_excerpt() : $this->post_data['excerpt'];
    			$replace['shortlink']	= !isset($this->post_data['shortlink']) ? wp_get_shortlink() : $this->post_data['shortlink'];
    			$replace['thumbnail']	= is_array($thumb) && isset($thumb[0]) ? $thumb[0] : "";
    			$replace['thumbnail']	= !isset($this->post_data['thumbnail']) ? $replace['thumbnail'] : $this->post_data['thumbnail'];
    			
    			$replace = apply_filters('avia_social_share_link_replace_values', $replace);
    			$charset = get_bloginfo('charset');
    			
    			foreach($this->args as $key => $share)
    			{
    				$share_key  = 'share_'.$key;
    				$url 		= $share['pattern'];
    				
    				//if the backend option is disabled skip to the next link. in any other case generate the share link
    				if(isset($this->options[$share_key]) && $this->options[$share_key] == 'disabled' ) continue;
    				
    				foreach($replace as $replace_key => $replace_value)
    				{
    					if(!empty($share['encode']) && $replace_key != 'shortlink' && $replace_key != 'permalink') $replace_value = rawurlencode(html_entity_decode($replace_value, ENT_QUOTES, $charset));
    					if(!empty($share['encode_urls']) && ($replace_key == 'shortlink' || $replace_key == 'permalink')) $replace_value = rawurlencode(html_entity_decode($replace_value, ENT_QUOTES, $charset));
    					
    					$url = str_replace("[{$replace_key}]", $replace_value, $url);
    				}
    				
    				$this->args[$key]['url'] = $url;
    				$this->counter ++;
    			}
    		}
    		
    		
    		
    		/*
    		 * function html
    		 * builds the html, based on the available urls
    		 */
    
    		function html()
    		{
    			global $avia_config;
    			
    			if($this->counter == 0) return;
    			
    			$this->html .= "<div class='av-share-box'>";
    			if($this->title)
    			{
    				$this->html .= 		"<h5 class='av-share-link-description'>";
    				$this->html .= 		apply_filters('avia_social_share_title', $this->title , $this->args);
    				$this->html .= 		"</h5>";
    			}
    			$this->html .= 		"<ul class='av-share-box-list noLightbox'>";
    			
    			foreach($this->args as $key => $share)
    			{
    				if(empty($share['url'])) continue;
    			
    				$icon = isset($share['icon']) ? $share['icon'] : $key;
    				$name = isset($share['label'])? $share['label']: __("Share on",'avia_framework'). " " .ucfirst($key);
    				
    				$blank = strpos($share['url'], 'mailto') !== false ? "" : "target='_blank'";
    				
    				$this->html .= "<li class='av-share-link av-social-link-{$key}' >";
    				$this->html .= 		"<a {$blank} href='".$share['url']."' ".av_icon_string($icon)." title='' data-avia-related-tooltip='{$name}'><span class='avia_hidden_link_text'>{$name}</span></a>";
    				$this->html .= "</li>";
    			}
    			
    			$this->html .= 		"</ul>";
    			$this->html .= "</div>";
    			
    			return $this->html;
    		}
    		
    		
    		
    		
    	}
    }
    

    I tested this in my localhost child theme to ensure it wourks, search for “Share with child theme” within this code and replace with your translation.

    Best regards,
    Mike

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.