admin管理员组文章数量:1389754
I am working on editing the theme now for our center website, we are using Benevolence WordPress Theme. My question might look too obvious to most of you but I am new to word press and spending too much time to understand this basic thing.
<div class="custom_grid_7 branding">
<?php if (ot_get_option( 'wpl_logo' ) !== '' ) { ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?> - <?php bloginfo('description'); ?>" rel="home"> </a>
<img src="<?php echo ot_get_option('wpl_logo'); ?>
<?php } else { ?>
<h1 id="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?> - <?php bloginfo('description'); ?>" rel="home"> <?php bloginfo('name'); ?> </a></h1>
<h2 id="site-description"><?php bloginfo('description'); ?></h2>
<?php } ?>
</div>
if someone can explain this piece of code for me? For example, I know this code is referring to the image.
<img src="<?php echo ot_get_option('wpl_logo'); ?>
I would like to change the current image/title but I don't know where is the link of this image?
I am working on editing the theme now for our center website, we are using Benevolence WordPress Theme. My question might look too obvious to most of you but I am new to word press and spending too much time to understand this basic thing.
<div class="custom_grid_7 branding">
<?php if (ot_get_option( 'wpl_logo' ) !== '' ) { ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?> - <?php bloginfo('description'); ?>" rel="home"> </a>
<img src="<?php echo ot_get_option('wpl_logo'); ?>
<?php } else { ?>
<h1 id="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?> - <?php bloginfo('description'); ?>" rel="home"> <?php bloginfo('name'); ?> </a></h1>
<h2 id="site-description"><?php bloginfo('description'); ?></h2>
<?php } ?>
</div>
if someone can explain this piece of code for me? For example, I know this code is referring to the image.
<img src="<?php echo ot_get_option('wpl_logo'); ?>
I would like to change the current image/title but I don't know where is the link of this image?
Share Improve this question asked Mar 19, 2020 at 14:50 AishaAisha 1 2 |1 Answer
Reset to default 1It is not a WordPress funciton, ot_get_option
is a function from the OptionTree plugin:
https://github/valendesigns/option-tree
For details on how it works internally and where it stores its data you will need ot look up options tree docs and support
本文标签: theme developmentwhere is real values of variables
版权声明:本文标题:theme development - where is real values of variables? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744656537a2617999.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
ot_get_option
isn't a WordPress function, it looks like something from your theme or a plugin – Tom J Nowell ♦ Commented Mar 19, 2020 at 15:06