• I am working on a new website.
    Lots of specials i have worked out. But still want to change some things. Like HTML in the Row description and quote text box.

    I got the CSS-JS-PHP plug-in and made this JS WP-footer:
    var $ = jQuery,
    featuredr-description = $(‘#featuredr-description p’),
    htmlString;

    $.each(featuredr-description, function() {
    htmlString = $(this).text();
    $(this).html(htmlString);
    });

    But unfortunally this didn’t work for the row description. Can somebody help me whit it?

    Also looking for the same string, but then for the quote box

    friendly regards
    Paul

Viewing 12 replies - 1 through 12 (of 12 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Link to a page with the issue, please.

    Thread Starter hoeby

    (@hoeby)

    Thread Starter hoeby

    (@hoeby)

    I only added the link to the admin site in the quote box, you can see that it doesn’t work

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    But that’s not HTML. I don’t think you’re experiencing the same problem as other people.

    Thread Starter hoeby

    (@hoeby)

    Something went not right. I posted a HTML link whit button option. But the half HTML code was gone.

    Now i posted a standard HTML link, but still doesn’t work. See https://www.mfg-selfkant.de And then down the bottom of the side.

    The plug-in for the featured box works.

    But i want to use something like this for the quote box and row description. I think i need to change the text “featured-boxs” to the text where to find the quote box. But i don’t know which text the programmer did use, to discripe the quote box in the program software

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try changing this:

    var $ = jQuery,
    featuredr-description = $('#featuredr-description p'),
    htmlString;
    
    $.each(featuredr-description, function() {
    htmlString = $(this).text();
    $(this).html(htmlString);
    });

    To this:

    var $ = jQuery,
        target = $('#featuredr-description p, blockquote'),
        htmlString;
    
    $.each(target, function() {
        htmlString = $(this).text();
        $(this).html(htmlString);
    });

    By the way you cannot use hyphens in variable names.

    Thread Starter hoeby

    (@hoeby)

    it worked, thank you very much

    Hi –

    Could the process for getting this feature to work be elaborated upon?

    What does the following mean?

    “I got the CSS-JS-PHP plug-in and made this JS WP-footer:”

    The HTML display was working before the latest upgrade, so I’m looking to get HTML processing in the front page row descriptions. I’m just looking for concise resolution.

    Thanks!

    Victor

    Thread Starter hoeby

    (@hoeby)

    I am getting forward. Whit importing HTML in the simplify front page, tekst block “Front Page Heading Description”
    I don’t know exactly if i have searched the right target discription (heading-desc).

    I added this script in CSS-JS-PHP. But unfortunally i didn’t work.
    Link to website: https://mfg-selfkant.de/

    Somebody knows what i did wrong?

    var $ = jQuery,
        target = $('#heading-desc p, blockquote'),
        htmlString;
    
    $.each(target, function() {
        htmlString = $(this).text();
        $(this).html(htmlString);
    });
    Thread Starter hoeby

    (@hoeby)

    Found it.
    I was right. It was not “heading-desc” as target description.
    Needed to change it to “container” and it worked

    Changed it to this

    var $ = jQuery,
        target = $('#container p, blockquote'),
        htmlString;
    
    $.each(target, function() {
        htmlString = $(this).text();
        $(this).html(htmlString);
    });

    Thread Starter hoeby

    (@hoeby)

    i need to come back from my answer.
    When i changed it to “container”. Then HTML code in the Header Disciption works. But other HTML links don’t work anymore. When i remove the JS-footer, then the other links work again.

    strange

    Thread Starter hoeby

    (@hoeby)

    I solved it an other way.
    I didn’t ad a JS-footer. But changed the “front-page.php” from the simplify theme.

    This is what i made. Now it worked and also the other links are working

    get_header(); ?>
    <div id="header-bottom"> </div>
    <div id="container">
    <h1 id="heading"><?php echo esc_textarea(of_get_option('heading-text', __('Welcome to the World of Creativity!','simplify'))); ?></h1>
    <p class="heading-desc">Herzlich Willkommen auf der Homepage der ModellFlugGruppe Selfkant "Grenshoppers". <BR> Wir wünschen unseren Besuchern viel Spass!<BR><a href="https://mfg-selfkant.de/sub-themes-2/wetter"> Für actuel wetter flugplatz, bitte klick Sie hier.</p>

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘HTML in Row Description and quote text box’ is closed to new replies.