Forum Replies Created

Viewing 15 replies - 31 through 45 (of 93 total)
  • Thread Starter mrcangrejero

    (@mrcangrejero)

    Hope I did this correctly. The zip file is here. Thanks!

    Dear Mr. Johal:

    I have read this support thread with great interest, particularly your post on “How to add a new tab” and Mr. MarcGuay’s contribution. Although it has been said before, the code works flawlessly. Thanks a bunch for this and for your generosity.

    I would like to abuse your generosity more, but will understand if you can not help me with the following:

    1. I was able to build several font controls for my 2016 child theme. However, when I expand a font control, there’s no way to collapse it; you have to crash the customizer.

    2. Instead of hard-coding a font size, I would like to have a way to create a slider for the control.

    3. Except for the font drop down and the slider, I would like to eliminate the other options that appear.

    Once again, any guidance is appreciated. Thanks and the best for you and yours.

    Thread Starter mrcangrejero

    (@mrcangrejero)

    Thread Starter mrcangrejero

    (@mrcangrejero)

    Thanks, David, but I want to do it through the customize feature.

    Thread Starter mrcangrejero

    (@mrcangrejero)

    For what is worth, see museum-core implementation of skins.

    Thread Starter mrcangrejero

    (@mrcangrejero)

    Dear Jose:
    Worked like a charm. Thank you very much and the best to you and yours.

    Thread Starter mrcangrejero

    (@mrcangrejero)

    Appreciate that very much, Jan. Back to the books!

    Thread Starter mrcangrejero

    (@mrcangrejero)

    To WEN Solutions and Digico Paris:

    Not since my days back in the 80’s, when I started programing with MS-DOS, Basic, dBase III and my Tandy 1000 (with 10Mb External Hard Drive and 256K of RAM) had I met such nice people willing to help others. I really want to thank you and wish the best to both of you and yours. I’m trying to learn about PHP, mySQL, etc. but, at 66, my short memory betrays me.

    I’m going to work with your suggestions and will get back to you no matter what happens. If I don’;t get back to you in a reasonable period of time, I probably forgot to do it. Take care!

    Thread Starter mrcangrejero

    (@mrcangrejero)

    Thanks, Chris.

    Thread Starter mrcangrejero

    (@mrcangrejero)

    Hey, WEN Solutions. Good to “hear” from you.

    The plugin is wonderful and will help me a lot. Thanks! However, would it be possible to have, or could you show me how to add other options like background, wrapper, post (title, background & footer), links, etc.

    Thread Starter mrcangrejero

    (@mrcangrejero)

    Dear WEN Solutions:

    It’s been a long run but, with your suggestions, I learned a lot. When running your code above, I noticed that “$current_site->site_name” doesn’t check for Site Title. Actually, the “if” statement was alway “false” because “$current_site->site_name” produced the site’s url; “https://wp-multisites.com/”. By chance, I found “site_url”. Made a few changes to your code and, alas it worked. This is what I finally did:
    `<?php
    $url = site_url();
    if($url == ‘https://wp-multisites.com/nspr&#8217;)
    {
    echo “Favor de notificar errores a “.’NotiSegurosPR.’;
    }
    ?>
    You have no idea how much I’ve enjoyed this experience. I wish that everyone here were as patient and forgiving as you were. For that, I will always be grateful. Once again, thanks, and the best to you and yours.

    Thread Starter mrcangrejero

    (@mrcangrejero)

    Thanks, WEN Solutions.

    With the following code …

    <div class="container-fluid">
        <div class="row">
            <div class="col-md-12 text-center">
                if($current_site->site_name == 'NotiSegurosPR')
                {
                "Favor de notificar errores a <a mailto:[email protected]>NotiSegurosPR</a>";
                }
            </div> <!-- /col-md-12 -->
        </row>
    </div> <!-- /container-fluid -->

    … I don’t get an error, but the following is displayed on the site/page …
    if($current_site->site_name == 'NotiSegurosPR') { "Favor de notificar errores a NotiSegurosPR"; }

    Adding <?php ?> to the same code …

    <div class="container-fluid">
        <div class="row">
            <div class="col-md-12 text-center">
                <?php
                if($current_site->site_name == 'NotiSegurosPR')
                {
                "Favor de notificar errores a <a mailto:[email protected]>NotiSegurosPR</a>";
                }
                ?>
            </div> <!-- /col-md-12 -->
        </row>
    </div> <!-- /container-fluid -->

    … I don’t get any error but nothing is displayed, either.
    I’m placing them in my child’s footer.php
    Take care!

    Thread Starter mrcangrejero

    (@mrcangrejero)

    Thanks again, WEN Solutions!

    Tried your code above, tried it adding <?php ?>, and tried it adding a semi-colon after == 'NotiSegurosPR'), but couldn’t make it work. Hope you can still help. Regardles, wish you and yours the best!

    Thread Starter mrcangrejero

    (@mrcangrejero)

    WEN Solutions. Thanks for your help.

    I used this:

    <?php
    $current_site = get_current_site();
    // echo 'You are viewing ' . $current_site->site_name;
    	if($current_site->site_name) == 'NotiSegurosPR',
    		"Favor de notificar errores a <a mailto:[email protected]>NotiSegurosPR</a>";
    	else;
    ?>

    Got this message:
    Parse error: syntax error, unexpected T_IS_EQUAL in /home/content/80/12126080/html/wp-content/themes/cang/footer.php on line 38
    Have no idea what does it mean. Any help is appreciated. Thanks!!

    Thread Starter mrcangrejero

    (@mrcangrejero)

    Thanks, WEN Solutions.

    The issue is the following. My WordPress installation at GoDaddy is configured for multisites and is the English version. In Setings ==> General for sites 1 and 2, the language is set for English(United States). In site 3, Setings ==> General is set for Spanish (Espa?ol).

    All sites use a Child Theme with its own modified footer.php. I would like to modify that PHP file so that it checks to see if site 3 is the active site. If it is, I want to display something like Notify errors to <a mailto:[email protected]>NotiSegurosPR</a>. Otherwise, don’t display the mailto line.

    Hope you can help. Thanks again!

Viewing 15 replies - 31 through 45 (of 93 total)