Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #384290

    Can I put a link (target) to the whole area of a text-box?
    Second question: how can I make the backgrund color of only one text-box to be red an the color of the font to be white?
    Thx!

    #384462

    Hey KMikeT!

    Please turn on custom CSS field for ALB elements firstly ( http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ ) and give your Text Block element a custom CSS class (i.e: my-custom-block )
    then add following code to functions.php file in Appearance > Editor

    function add_custom_div(){
    ?>
    <script>
    jQuery(".my-custom-block").click(function(){
            window.location = jQuery(this).find("a:first").attr("href");
            return false;
        });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_div');

    Then add following code to Quick CSS in Enfold theme options > General Styling

    .my-custom-block { background-color: red; color: white; padding: 10px; }

    Best regards,
    Yigit

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.