WordPress.org

Ready to get started?Download WordPress

Forums

discover
HTML in "Welcome page"? (9 posts)

  1. ench0
    Member
    Posted 11 months ago #

    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... :(

  2. manish_gori
    Member
    Theme Author

    Posted 10 months ago #

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

  3. vaneess
    Member
    Posted 10 months ago #

    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." ?>
  4. estherrudolph
    Member
    Posted 10 months ago #

    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!)

  5. CloudyBright
    Member
    Posted 9 months ago #

    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?

  6. melissasrogers
    Member
    Posted 9 months ago #

    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.

  7. manish_gori
    Member
    Theme Author

    Posted 9 months ago #

    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>

  8. manish_gori
    Member
    Theme Author

    Posted 9 months ago #

    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." ?>

  9. vaneess
    Member
    Posted 9 months ago #

    great, thank you manish_gori! :)

Reply

You must log in to post.

About this Theme

About this Topic