Support » Plugin: Service Box Showcase » Adding a URL to service “TITLE” and “ICON”

  • Resolved ucmartino

    (@ucmartino)


    Please, how can I add a link to the service “Title” and “icon” while using the service-box plugin? I don’t want to attach the “read more” button.

Viewing 3 replies - 1 through 3 (of 3 total)
  • hi @ucmartino,

    this feature is not available..you can only add link to read more button..

    thanks.

    @ucmartino
    i had the same issue and I solved it. Maybe this works for you too.

    First I searched for the design I used (mine is Design 24) and found the needed index.php here:
    “wp-content/plugins/service-showcase-pro/template/designs/design-24/index-24.php”

    There I figured out how the “read more” link works and tried it with other options.

    I added under line 42
    $wpsm_sb_link="<a class='wpsm_read_more' href='$sb_all_contents_btn_link_url' $link_target>$sb_link_text</a>";

    This Code:
    $sb_all_contents_title="<a class='wpsm_title' href='$sb_all_contents_btn_link_url' $link_target>$sb_all_contents_title</a>";

    I use the grid layout so I changed a few things a few lines down.

    There is this part:

    //For Grid
    				if($sb_all_contents_view_type=="grid"){$sb_grid_clear_both= "<div style='clear:both'></div>";}
    					
    				?>
    				<div class="<?php echo $sb_Layout_Cls;?>">
    					<div class="wpsm_serviceBox_<?php echo $PostId;?>" id="wpsm_serviceBox_<?php echo $PostId."_".$i;?>">
    						<div class="wpsm_service_icon" >
    							<?php if($sb_all_contents_btn_img_or_icon=='Icon'){?>
    								<i class='<?php echo $sb_all_contents_icons;?>'></i><?php } 
    							else { ?>
    								<img src='<?php echo $sb_all_contents_images;?>' style=''/><?php } ?>
    						</div>
    						<div class="wpsm_service_content">	
    							<h3 class="wpsm_title"><?php echo $sb_all_contents_title;?></h3>
    							<div class="line"></div>
    							<p class="wpsm_description"><?php echo $sb_all_contents_description;?></p>
    							<?php echo $wpsm_sb_link;?>
    						</div>	
    					</div>
    				</div>
    				<?php if($i%$row==0)  //for grid
    	

    And I changed it to this:

    //For Grid
    				if($sb_all_contents_view_type=="grid"){$sb_grid_clear_both= "<div style='clear:both'></div>";}
    					
    				?>
    				<div class="<?php echo $sb_Layout_Cls;?>">
    					<div class="wpsm_serviceBox_<?php echo $PostId;?>" id="wpsm_serviceBox_<?php echo $PostId."_".$i;?>">
    						<div class="wpsm_service_icon" >
    							<?php if($sb_all_contents_btn_img_or_icon=='Icon'){?>
    								<i class='<?php echo $sb_all_contents_icons;?>'></i><?php } 
    							else { ?>
    								<img src='<?php echo $sb_all_contents_images;?>' style=''/><?php } ?>
    						</div>
    						<div class="wpsm_service_content">	
    							<h3 class="wpsm_title"><a href='$sb_all_contents_btn_link_url' $link_target><?php echo $sb_all_contents_title;?></a>							</h3>
    							<div class="line"></div>
    							<p class="wpsm_description"><?php echo $sb_all_contents_description;?></p>
    							<?php echo $wpsm_sb_link;?>
    						</div>	
    					</div>
    				</div>
    				<?php if($i%$row==0)  //for grid	

    I wasn’t able to get a working link on the icon too. But I don’t really need it very much. The link on Title was something I really wanted.

    Hope it helps you too!

    Btw. this changes might be gone after a plugin update. Don’t know for sure but we will see.

    • This reply was modified 1 year, 2 months ago by burzlbaum.

    hi @burzlbaum ,

    you are using pro so put up your query on pro support forum.

    thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding a URL to service “TITLE” and “ICON”’ is closed to new replies.