This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Header text

  • Creator
    Topic
  • #1682
    scottgregson
    Participant

    In the theme options | layout (tab) | Header Text – this text will not allow some html markup and css. It will allow , I need span. I searched the files for “header-addon” but can only find .css files. The view-source of the website shows this item is in a section commented “header-addon”.

    Where can I find the actual functions, and how can I tinker with them in the child theme?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #1687
    Jason Bobich
    Keymaster

    Hello,

    You really have many ways you could approach this.

    1) First, you could just filter in span tags to be accepted on your Theme Options page. This is actually the specific example used in the following article, which will show you to do this from functions.php of your Child theme.

    http://www.jasonbobich.com/theme-forest-updates/expanding-accepted-html-tags-in-the-theme-blvd-wordpress-theme-framework/

    2) If you actually want to edit the PHP functions from your Child theme’s functions.php, this is what the hook system is for. Just pick your hook and edit away.

    http://dev.themeblvd.com/tutorial/primary-framework-action-hooks/

    Example:

    function my_header_addon(){
    	?>
    	your custom markup...
    	<?php
    }
    remove_all_actions( 'themeblvd_header_addon' );
    add_action( 'themeblvd_header_addon', 'my_header_addon' );

    3) Or, you can just edit the function the theme already hooks to the “themeblvd_header_addon” to meet your needs. The function is called “alyeska_header_addon” and is located in /includes/theme-functions.php. Simply copy it to your Child theme’s functions.php before the framework runs to edit it.

    http://dev.themeblvd.com/tutorial/editing-framework-functions/

    #1691
    scottgregson
    Participant

    OK, I am just calling it a day. I will try the child-theme fix first. I think I read you are updating your older themes to use a new framework and I don’t want to lose my edits.

    tnx for answering on Saturday, I thought maybe you’d get to it Wednesday! Stay warm up there.

    I’ll post back with results.

    #1693
    Jason Bobich
    Keymaster

    You shouldn’t lose any edits. Alyeska is an “older” theme but it was already updated to use the new framework close to a year ago now.

    These are all of the themes that will be completely re-done: http://support.themeblvd.com/forums/forum/v1-themes/

    Currently Alyeska holds framework v2.1, which needs to be updated to v2.2, but this won’t effect these sorts of customizations we’re talking about here. It’s pretty minor update in the scope of how everything works, or at least in regards to what we’re discussing in this topic.

    Happy Holidays!

    #1729
    scottgregson
    Participant

    OK, great. I re-read your answer and decided to use the filter (1st option). It worked fine. tnx!

    #2807
    sliiguy
    Member

    I have read through the instruction and see that one is an allowed html in the header text, however when I go to save it removes the html. can you please advise.

    #2811
    Jason Bobich
    Keymaster

    @sliiguy

    The HTML allowed there is very limited. You can either filter on your own allowed HTML tags like this: http://www.jasonbobich.com/theme-forest-updates/expanding-accepted-html-tags-in-the-theme-blvd-wordpress-theme-framework/

    Or you can just hook your own custom content to themeblvd_header_addon from your Child theme’s functions.php — http://dev.themeblvd.com/tutorial/primary-framework-action-hooks/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.