Add a link using child thene
-
In BizOne layout, the left section heading is a link. I want to add another link below it which I can do by replacing the link in index_bone.php by two new links left_section_headline1 and left_section_headline2 as follows:
<a href="<?php if( of_get_option('left_section_link') ) { echo esc_url( of_get_option('left_section_link') );}else { echo '#';}?>"> <?php if( of_get_option('left_section_headline1') ){ echo esc_html( of_get_option('left_section_headline1') ); }else { _e('Design', 'BizSphere'); } ?> </a> <a href="<?php if( of_get_option('left_section_link') ){ echo esc_url( of_get_option('left_section_link') );}else { echo '#';}?>"> <?php if( of_get_option('left_section_headline2') ){ echo esc_html( of_get_option('left_section_headline2') ); }else { _e('Design', 'BizSphere'); } ?> </a>
I then changed option.php as follows:
$options[] = array( "name" => __("Headline", 'BizSphere' ), "desc" => __("Enter the headline", 'BizSphere' ), "id" => "left_section_headline1", "type" => "text"); $options[] = array( "name" => __("Headline", 'BizSphere' ), "desc" => __("Enter the headline", 'BizSphere' ), "id" => "left_section_headline2", "type" => "text");
How can I do the same thing in my Child-Theme ?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add a link using child thene’ is closed to new replies.