• Hello is there a way to use HTML tags in the Welcom,e page? I tried simple things like <br> and <p>..</p> and it just displays them literally. I understand the need for protection but it is a real pain not to be able to separate blocks of text in your welcome statemt… everything looks like a big unreadable blob… 🙁

Viewing 8 replies - 1 through 8 (of 8 total)
  • Theme Author manish_gori

    (@manish_gori)

    You have to remove esc_html in element-slider.php and esc_textarea for boxes in element-boxes.php keep BACKUP.

    hey, what do i have to remove exactly?

    slider:

    <a href="<?php echo esc_url(of_get_option('slider_link'.$i)); ?>"><img src="<?php if(esc_url(of_get_option('slider_image'.$i)) != NULL){ echo esc_url(of_get_option('slider_image'.$i));} else echo get_template_directory_uri() . '/images/slide'.$i.'.jpg' ?>" alt="<?php echo esc_html(of_get_option('slider_head'.$i)); ?>" /></a>
    
    			<p class="flex-caption"><?php if(esc_html(of_get_option('slider_head'.$i)) != NULL){ echo esc_html(of_get_option('slider_head'.$i));} else echo "Nullam posuere felis a lacus tempor eget dignissim arcu adipiscing." ?><p>

    boxes:

    <?php if esc_textarea</strong>(of_get_option('box_text' . $i)) != NULL){ echo esc_textarea(of_get_option('box_text' . $i));} else echo "Nullam posuere felis a lacus tempor eget dignissim arcu adipiscing. Donec est est, rutrum vitae bibendum vel, suscipit non metus." ?>

    My question is similar, because otherwise the welcome looks impractical for multilingual sites (but I’m still searching, because the template is pretty awesome, thanks a lot!)

    I too would like to put html in the text boxes – actually I want to run an inline script.
    I can’t use it the way it is now – I need to modify the text boxes.
    How to?

    I second vaneess’s question above…what do you have to remove exactly? I have tried a variety of deleting combinations…some don’t do anything, some result in syntax errors.

    I am just trying to insert a simple link into the welcome header box.

    Theme Author manish_gori

    (@manish_gori)

    This should be new code line 46 in index.php for welcome slider text:

    <p><?php if(of_get_option(‘welcome_text’) != NULL){ echo of_get_option(‘welcome_text’);} else echo “Nullam posuere felis a lacus tempor eget dignissim arcu adipiscing. Donec est est, rutrum vitae bibendum vel, suscipit non metus.” ?></p>

    Theme Author manish_gori

    (@manish_gori)

    This should be for boxes in element-boxes.php on line 18:

    <?php if(of_get_option(‘box_text’ . $i) != NULL){ echo of_get_option(‘box_text’ . $i);} else echo “Nullam posuere felis a lacus tempor eget dignissim arcu adipiscing. Donec est est, rutrum vitae bibendum vel, suscipit non metus.” ?>

    great, thank you manish_gori! 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘HTML in "Welcome page"?’ is closed to new replies.