Hello @oyougu,
Could you please try the following code, which will allow you to style the link if you need it using the .gallery-link class:
<div class=”widget-column-2″>
<h5><?php if( of_get_option(‘ourservicestitle’) != ”){ echo of_get_option(‘ourservicestitle’);} ?></h5>
<?php if( of_get_option(‘servicesarea’) != ”) {echo do_shortcode(of_get_option(‘servicesarea’)); } ?>
<?php if( function_exists( ‘envira_gallery’ ) ) { envira_gallery( ‘635’, ‘slug’ ); } ?>
<div class=gallery-link>
<?php echo '<a href="https://www.oyougu.com/" target="_blank" title="' . esc_attr__( 'Footer gallery link', 'oyougu' ) . ' >' . esc_html__( 'Footer gallery link', 'oyougu' ) . '</a>.'; ?>
</div>
</div>
Thread Starter
oyougu
(@oyougu)
Hi @nm1com,
Thanks for the reply!
I went to footer.php to change the code but still no luck…
<div class="widget-column-2">
<h5><?php if( of_get_option('ourservicestitle') != ''){ echo of_get_option('ourservicestitle');} ; ?></h5>
<?php if( of_get_option('servicesarea') != '') {echo do_shortcode(of_get_option('servicesarea')); } ; ?>
<?php if( function_exists( ‘envira_gallery’ ) ) { envira_gallery( ‘635’, ‘slug’ ); } ?>
<div class=gallery-link>
<?php echo '<a href="https://www.oyougu.com/" target="_blank" title="' . esc_attr__( 'Footer gallery link', 'oyougu' ) . ' >' . esc_html__( 'Footer gallery link', 'oyougu' ) . '</a>.'; ?>
</div>
</div>
You’re welcome! I think I misunderstood what you wanted to do.
I think you must have tried adding something like:
<?php echo '<a href="https://www.oyougu.com/">Oyougo</a>'; ?>
Otherwise, your site appears to use the Kids Campus Pro theme. This theme uses widgets to display content in the footer section.
You can follow the instructions found here to find these widgets (you’ll probably need to add Footer Widget 2): http://www.gracethemesdemo.com/documentation/kids-campus/#widgets
You can add the link using a Custom HTML widget with the following code:
<a href="https://www.yourlinkhere.com/">Link text here</a>