Image in text fields

  • Author
    Posts
  • #13567
    Paolo Arseneau

    Hi, is there a way possible to put an image in “Mantra Settings/Presentation page/Extras/Top Title” instead of text?

    Thanks

    PS. Great theme, keep up the good work.

    #13679
    Zed
    Cryout Creations mastermind

    You can only do that by editing the theme files, namely frontpage.php includes/theme-frontpage.php (frontpage.php is in for Parabola)

    • This reply was modified 10 years ago by Zed. Reason: corrected filename mistake

    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #13710
    Paolo

    Thanks for the respond Zed, I appreciate the help, I really do. See, I’m a computer tech and although I see the logic behind the coding, I’m not sure how to change things. Could you edit it for me, or anyone else please? Here is the frontpage php:

    Again, Thanks

    • This reply was modified 10 years ago by Zed. Reason: cleaned up unnecessary code
    #13849
    Zed
    Cryout Creations mastermind

    I named the wrong file in my previous post. frontpage.php is for Parabola; in Mantra, the file is includes/theme-frontpage.php.
    Open it, look for the line
    // First FrontPage Title
    if($mantra_fronttext1) {?><div id="front-text1"> <h1><?php echo esc_attr($mantra_fronttext1) ?> </h1></div><?php }

    and replace this with your image HTML; then add the proper CSS to position/arrange that image HTML in the theme’s custom CSS field.

    PS: This should be done via a child theme; when done via a child theme, the file includes/theme-frontpage.php needs to be called (include_once()) by the child theme’s functions.php file, otherwise it is not read.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Image in text fields’ is closed to new replies.