Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter senojeel

    (@senojeel)

    I’m just curious …

    Is there a reason why you can’t just reorder the code in the template.php file for hd-toggle so the button would always be below content2? Or is it more common to keep the button above the content2 section and I am just weird?

    <?php if ($props['content']) : ?>
            <div class="uk-margin"><?php echo $props['content'] ?></div>
        <?php endif ?>
        <?php if ($props['content2']) : ?>
            <div <?php echo ($uniqid != '') ? 'id="' . $uniqid . '"' : '' ?> class="uk-margin" <?php echo $ishidden; ?>><?php echo $props['content2'] ?></div>
        <?php endif ?>
    
    <!-- I moved this below the code block above and added a class -->
        <div class="uk-margin rmore">
    
            <?php echo $button($props) ?>
    
                <?php if ($props['icon'] && $props['icon_align'] == 'left') : ?>
                <?php echo $icon($props, '') ?>
                <?php endif ?>
    
                <?php if ($props['btn_label']) : ?>
                <?php echo $props['btn_label'] ?>
                <?php endif ?>
    
                <?php if ($props['icon'] && $props['icon_align'] == 'right') : ?>
                <?php echo $icon($props, '') ?>
                <?php endif ?>
    
            <?php echo $button->end() ?>
    
        </div>
    Thread Starter senojeel

    (@senojeel)

    I missed Attribute part. Many thanks for taking time to help me.

    Thread Starter senojeel

    (@senojeel)

    I thought… Now it is doing opposite of what I want. It is showing the part I want hidden first and then toggles to hidden.

    https://putnamparks.org/friends/

    Thread Starter senojeel

    (@senojeel)

    Ok. I figured it out. Whew! Thanks again.

    Thread Starter senojeel

    (@senojeel)

    Ahh, I had just downloaded and installed it. But now I see the update there. The button does appear now.

    So if I put .show-bio on the text element I want hidden at first, is both the Target and CLS .show-bio. Or is the Target something different?

    Thread Starter senojeel

    (@senojeel)

    Sorry, am trying to get this to work like your demo. I am trying to show 1 paragraph on load and toggle one paragraph. Am I going to have 3 elements? The one I want hidden and toggle will have the class I put in the Toggle settings? If I leave both content fields blank, the button doesn’t appear. I am sure I am just missing something.

    Thread Starter senojeel

    (@senojeel)

    Ok. Thanks! I was looking at your demo page and that was the way I wanted it to work. The first way with the CSS works, but I will try the other way and see which I like better. Thanks again.

    Thread Starter senojeel

    (@senojeel)

    Thanks Sundar.

    I added htaccess rules and disabled the caching plugin (WP Super Cache).

    RewriteCond %{HTTP_HOST} ^cmfi.org [NC]
    RewriteRule ^(.*)$ https://www.cmfi.org/$1 [L,R=301]

    I tested it was working and then reenabled WP Super Cache, cleared the cache and it still works.

    However, now I can’t get to my Network Admin now. It says there are too many redirect.

    Sorry, I had an extra slash in my URL in my original post.

    Any more ideas?

    Thread Starter senojeel

    (@senojeel)

    I will do that jaycbrf. I inherited this site, so I am discovering things as I go through it. PHP shortcodes was the issue I was having. I will eventually changed them, but for now, I enabled them on the server.

    Thanks for everyone’s help!

    Thread Starter senojeel

    (@senojeel)

    I changed the jquery call, but it didn’t change the results. From everything I have read so far, the dot (.) is correctly used.

      wp_enqueue_style('normalize', get_stylesheet_directory_uri() . '/jplist/css/vendor/normalize.css');
    
    Thread Starter senojeel

    (@senojeel)

    Ahh, that makes sense.

    Any idea as to why I am getting the error “Uncaught Error: Syntax error, unrecognized expression: .” on my code above?

    Thread Starter senojeel

    (@senojeel)

    Thanks! Any ideas why that would work on one server, but not another?

    I also have this one:

    <?
    function list_scripts() {
      wp_enqueue_style('font1', 'https://fonts.googleapis.com/css?family=Lato');
      wp_enqueue_style('font-awesome', 'https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css');
      wp_enqueue_style('normalize', get_stylesheet_directory_uri() . '/jplist/css/vendor/normalize.css');
      wp_enqueue_style('styles', get_stylesheet_directory_uri() . '/jplist/css/styles.min.css');
    	
      wp_enqueue_script('jquery', '/wp-includes/js/jquery/jquery.js');
      
      //mediaswitch
      wp_enqueue_style('mediacheck', get_stylesheet_directory_uri() . '/mediacheck/css/base.css');
      wp_enqueue_script('mediacheck', get_stylesheet_directory_uri() . '/mediacheck/js/mediaCheck-min.js');
      
      //jquery ui
      wp_enqueue_style('jquery-ui', get_stylesheet_directory_uri() . '/jplist/css/vendor/jquery-ui.min.css');
      wp_enqueue_script('jquery-ui', get_stylesheet_directory_uri() . '/jplist/js/vendor/jquery-ui.min.js');
      wp_enqueue_script('jquery-ui-touch-punch', get_stylesheet_directory_uri() . '/touchpunch/js/jquery.ui.touch-punch.min.js');
    
      //jplist core
      wp_enqueue_style('jplist', get_stylesheet_directory_uri() . '/jplist/css/jplist-core.min.css');
      wp_enqueue_script('jplist-core', get_stylesheet_directory_uri() . '/jplist/js/jplist-core.min.js');
      
      
      //jplist views
      wp_enqueue_style('jplist-views-control', get_stylesheet_directory_uri() . '/jplist/css/jplist-views-control.min.css');
      wp_enqueue_script('jplist-views-control', get_stylesheet_directory_uri() . '/jplist/js/jplist.views-control.min.js');
      
      //jplist pagination
      wp_enqueue_style('jplist-pagination-bundle', get_stylesheet_directory_uri() . '/jplist/css/jplist-pagination-bundle.min.css');
      wp_enqueue_script('jplist-pagination-bundle', get_stylesheet_directory_uri() . '/jplist/js/jplist.pagination-bundle.min.js');
      
      //jplist history
      wp_enqueue_style('jplist-history-bundle', get_stylesheet_directory_uri() . '/jplist/css/jplist-history-bundle.min.css');
      wp_enqueue_script('jplist-history-bundle', get_stylesheet_directory_uri() . '/jplist/js/jplist.history-bundle.min.js');
      
      //jplist toggle
      wp_enqueue_style('jplist-filter-toggle-bundle', get_stylesheet_directory_uri() . '/jplist/css/jplist-filter-toggle-bundle.min.css');
      wp_enqueue_script('jplist-filter-toggle-bundle', get_stylesheet_directory_uri() . '/jplist/js/jplist.filter-toggle-bundle.min.js');
      
      //jplist jqueryui
      wp_enqueue_style('jplist-jquery-ui-bundle', get_stylesheet_directory_uri() . '/jplist/css/jplist-jquery-ui-bundle.min.css');
      wp_enqueue_script('jplist-jquery-ui-bundle', get_stylesheet_directory_uri() . '/jplist/js/jplist.jquery-ui-bundle.min.js');
      
      //jplist dropdown
      wp_enqueue_script('jplist.filter-dropdown-bundle', get_stylesheet_directory_uri() . '/jplist/js/jplist.filter-dropdown-bundle.min.js');
      
      wp_enqueue_style('smart_table', get_stylesheet_directory_uri() . '/css/smart_table.css');
      wp_enqueue_script('smart_table', get_stylesheet_directory_uri() . '/js/smart_table.js');
    }
    add_action( 'wp_enqueue_scripts', 'list_scripts' );
    ?>'

    I am changing the opening tag and removing the closing tag. But I am getting a different error.

    • This reply was modified 6 years, 11 months ago by senojeel.

    Thanks Rob. Were they pretty quick at approving the API app? I made your changes and nothing is showing up, but I am assuming that is because they haven’t approved it yet.

    Thread Starter senojeel

    (@senojeel)

    Thanks for fixing this. I got it updated. I was going to be disappointed if I have to switch from this great plugin.

    How do you find your viewer and key numbers if this is for a FB Page?

Viewing 15 replies - 1 through 15 (of 21 total)