Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Own social icons in Theme with echo social() #29

Closed
derweili opened this issue Mar 12, 2014 · 2 comments
Closed

Own social icons in Theme with echo social() #29

derweili opened this issue Mar 12, 2014 · 2 comments

Comments

@derweili
Copy link

Htmly always loads the social Icons from the default theme even if i have installed my own theme. I have created my own social icons e.g. facebook.png and put them into img/ folder in my theme. How can get htmly to use my own icons

https://github.com/julian-weiland/htmly-sideblog

@danpros
Copy link
Owner

danpros commented Mar 12, 2014

Hello,

You can call each link directly from config.ini using this code:

<?php echo config('social.twitter') ?>

so simply write in your theme like below (example):

<a href="<?php echo config('social.twitter')?>"><img src="<?php echo site_url() ?>themes/yourtheme/img/twitter.png"/></a>

Remember if you even can add new setting in config.ini, example:

my.twitter = "@htmly"

to print it in theme simply call <?php echo config('my.twitter') ?>

@derweili
Copy link
Author

Thanky you, that's it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants