-
AuthorPosts
-
December 1, 2016 at 8:31 pm #719385
Hi,
all i need add to all my pages simple image (100px on 100px) next to page title. For now i just add tad to the page title field and visually it works, but i understand that it is a dirty work. In other side, i not a big php master/wp-hooks master, so may be you could help me with it.
Thx in advance
December 1, 2016 at 10:26 pm #719411Hey MAKSIMS!
Can you please provide us a screenshot what you need to achive, cause the size of the image you say it pretty big
to see how we can help you, if it is possible through a simple modification or it would require to hire someone to help you out.Cheers!
BasilisDecember 2, 2016 at 8:58 am #719554December 5, 2016 at 4:12 pm #720513Anybody?
December 5, 2016 at 4:22 pm #720520Hi,
Please add following code to Functions.php file of your child theme in Appearance > Editor
add_filter('avf_title_args', 'fix_single_post_title', 10, 2); function fix_single_post_title($args,$id) { $args['subtitle'] = "<a class='titlebar-a' href='#'><img class='titlebar-img' src='https://kriesi.at/wp-content/themes/kriesi/images/logo.png'/></a>"; return $args; }
Best regards,
YigitDecember 5, 2016 at 5:14 pm #720546Thanks Yigit,
unfortunately you aproach asks some additional work, because this image apeared on lower block,but i need it in the h1(main-title) level. I tried simpler aproach, and it worked perfectly, please see folowing:
@media (min-width: 600px) and (max-width: 2000px) {
.main-title {
background-image: url(http://www.ddrosiba.lv/wp-content/uploads/2016/08/BV_Certification_ISO9001.jpg);
background-size: 144px 83px;
background-position: right;
background-repeat: no-repeat;
}
}Anyway, thank a lot for you attention.
- This reply was modified 8 years ago by Max Miko.
December 5, 2016 at 5:17 pm #720549Hi!
You are welcome! :)
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)Regards,
Yigit -
AuthorPosts
- The topic ‘How to add simple image next to page title’ is closed to new replies.