Tagged: , ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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

    #719411

    Hey 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!
    Basilis

    #719554

    Hi, Basilis

    Here is what i need: link

    Here is how i implemented this: link

    But of course it is not a solution. As i understand i must change something in theme core files.

    #720513

    Anybody?

    #720520

    Hi,

    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,
    Yigit

    #720546

    Thanks 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 7 years, 3 months ago by Max Miko.
    #720549

    Hi!

    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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to add simple image next to page title’ is closed to new replies.