Brak wdów w tekście
w html za pomocą
-ms-word-break: break-all; word-break: break-all; /* Non standard for WebKit */ word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto;
(function($){ $.fn.removeOrphans = function(){ if($(this).length > 0) { var $html = $(this).html(); $html = $html.replace(/(\s)([\S])[\s]+/g, "$1$2 "); // stosując wyrażenie regularne, do każdej pojedyńczej litery // posiadającej z obu stron spacje, dodajemy encje  , // czyli popularną "twardą spację" $(this).empty().html($html); } } })(jQuery); $(document).ready(function() { $('#page-box-right').removeOrphans(); $('#box-offer-right').removeOrphans(); $('.team-content').removeOrphans(); $('#boxs-aside-page').removeOrphans(); $('#box-category').removeOrphans(); });
Hope this helps and happy coding :)
Zobacz jeszcze
Post Object - dodanie wykazu wpisów custom post na dowolną stronę WP
W Custom Fields tworzymy pole typy Repeater (events_home) a w nim pole typu Post Object (event_home). W kodzie strony na której maja wyświetlać się wybrane wydarzenia:...