-
-
How do I make the Social Circle icon linkable as well. It appears only the title reacts to the link settings. https://dev-brookmark-2021.pantheonsite.io
-
Hi,
Which social circle you mean ? I could not find any social icon on your provided URL.
Thanks
-
Sorry, my mistake. It is “Service” Circle Icon widget. I asked WP Bakery page builder if it was their widget, they said it was the theme more likely.
Thank you -
Hi,
Thanks for the clarification, well if it is available in the settings only then you can make it clickable otherwise it will need custom work to make it as you want ?
Thanks
-
Do you have CSS that will make this easy? Or can you at least point me to the the code that runs this widget so I can try to fix it?
-
Hi,
Sorry it will require PHP code to make that work as you want not only CSS.
Thanks
-
Can you send a snippet of PHP then? This really should not be a difficult thing to do, in fact it should be part of the widget settings as an option to check on or leave unselected to deactivate.
We purchased the upgraded theme in hopes it would have options such as this. As well to get better support. I feel a little bit disappointed.
Thanks,
Pete -
Hi,
My friend let me clear that theme support is the part of the issues you are facing but not stuff like custom work. That’s why it is beyond the theme scope.
For PHP snippets just let me know if you are easy with programming so I can guide you accordingly.
Thanks
-
I can deal with PHP snippets, yes. Please point me to the snippet and file/s that need to be edited.
Thank you! -
Hi,
Then try to play with this file:
/wp-content/plugins/specular-wpbakery-addons/public/vc_templates/services_medium.php
Let me know if that works for you ?
Thanks
-
Would you be able to send a php sniper I can add to that file?
I saw something on another post here but can’t seem to locate that again.
Thanks,
Pete -
Hi,
Kindle see above post of mine where I have provided path of the file. You can make changes there.
Thanks
-
I am asking if you have the code snippet, or can you tell me what to edit here?
<?php
/**
* Shortcode attributes
* @var $atts
* @var $title
* @var $icon_bool
* @var $style
* @var $icon
* @var $image
* @var $icon_color=codeless_get_mod(‘primary_color’)
* @var $circle_color=codeless_get_mod(‘highlighted_background_main’)
* @var $border_color=codeless_get_mod(‘primary_color’)
* @var $dynamic_content_type
* @var $dynamic_post
* @var $dynamic_page
* @var $dynamic_content_link
* Shortcode class
* @var WPBakeryShortCode_Services_Medium
*/
$output = ”;
$atts = vc_map_get_attributes( $this->getShortcode(), $atts );
extract( $atts );$output = ‘<div class=” services_medium ‘.esc_attr($style).’ wpb_content_element”>’;
$icon_class = (($icon_bool == ‘yes’)?’with_icon’:’no_icon’);
$data = array();
$query = array();$data[‘link’] = ”;
$data[‘description’] = ”;if($dynamic_content_type == ‘page’){
$query = array( ‘p’ => $dynamic_page, ‘posts_per_page’=>1, ‘post_type’=> ‘page’ );
}
if($dynamic_content_type == ‘post’){
$query = array( ‘p’ => $dynamic_post, ‘posts_per_page’=>1, ‘post_type’=> ‘post’ );
}
if($dynamic_content_type == ‘content’){
$data[‘description’] = $content;
$data[‘link’] = $dynamic_content_link;
}else{
$loop = new WP_Query($query);
if($loop->have_posts()){
while($loop->have_posts()){
$loop->the_post();$data[‘link’] = get_permalink();
$data[‘description’] = get_the_excerpt();}
}
wp_reset_query();
}if($icon_bool == ‘icon’ || $icon_bool == ‘yes’ && !empty($icon)):
$extra_st = ”;
if($style == ‘style_1’)
$extra_st = ‘background:’.$circle_color.’;’;
if($style == ‘style_3’)
$extra_st = ‘border:2px solid ‘.esc_attr($border_color).’;’;
$output .= ‘<div class=”icon_wrapper” style=”‘.$extra_st.'”><i class=”‘.esc_attr($icon).'” style=”color:’.esc_attr($icon_color).’;”></i></div>’;endif;
if($icon_bool == ‘image’ && !empty($image)):
$output .= ‘‘;
endif;$output .= ‘<h4>‘.esc_html($title).’</h4>’;
$output .= ‘<p>’.do_shortcode($data[‘description’]).'</p>’;
$output .= ‘</div>’;
echo codeless_complex_esc($output);
?> -
I tried this bit did not work, please advise.
$output .= ‘<div class=”icon_wrapper” style=”‘.$extra_st.'”><i class=”‘.esc_attr($icon).'” style=”color:’.esc_attr($icon_color).’;”></i></div>’;
-
-
-
Hi Akram, was this sent to my email or will you post it here?
-
Hi,
Yes I tried to post here could not can you please send me admin logins so I can update file at my own and check ?
Thanks
-
-
Hi Akram, Would you please resend that code to my email? I cannot seem to find it and we are now ready to move the site from Dev mode to push it live and I never had time to try the code. Very much appreciated!
Pete
-
-
Hi,
Well, we don’t do this way but still I have sent you an email. After all we want you guys to move on … :)
Let me know if that works ?
Thanks
-
-
I did not see an email with the code, had you sent it? Can you resend please?
Thank you
Pete
-
-
Hi,
Well, I have sent email again on your provided email address, kindly verify and let me know ?
Thanks
-
You must be logged in to reply to this topic.