Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter Paul Taylor

    (@pftaylor61)

    I found the answer!

    Thanks for the reply. However, you have misunderstood the problem. I did not have a problem using fontawesome v5. My problem was using the code in functions.php in Quark, which delivers the Social Media Menu. Whereas all entries in this menu previously fed class ‘fa’, they now have to feed either ‘fab’ or ‘fas’, depending on whether or not the icon is a brand or not.

    This was a typical line for a social media icon.

    array( 'url' => of_get_option( 'social_twitter', '' ), 'icon' => 'fa-twitter', 'title' => esc_html__( 'Follow me on Twitter', 'qohelet' ) ),

    And all the social media icons were then delivered with:

    $output .= sprintf( '<li><a href="%1$s" title="%2$s"%3$s><span class="fa-stack fa-lg"><i class="fas fa-square fa-stack-2x"></i><i class="fa %4$s fa-stack-1x fa-inverse"></i></span></a></li>',
    					esc_url( $value ),
    					$key['title'],
    					( !of_get_option( 'social_newtab', '0' ) ? '' : ' target="_blank"' ),
    					$key['icon']
    				);

    I have found my own solution. I have now included the class with the of_get_option. Here are two examples:

    array( 'url' => of_get_option( 'social_twitter', '' ), 'icon' => 'fab fa-twitter', 'title' => esc_html__( 'Follow me on Twitter', 'qohelet' ) ),
    array( 'url' => of_get_option( 'social_rss', '' ), 'icon' => 'fas fa-rss', 'title' => esc_html__( 'Subscribe to my RSS Feed', 'qohelet' ) ),

    Then I removed the ‘fa’ class from the sprintf functions, thus:

    
    $output .= sprintf( '<li><a href="%1$s"><span class="fa-stack fa-lg"><i class="fas fa-square fa-stack-2x"></i><i class="fa %4$s fa-stack-1x fa-inverse"></i></span></a></li>',
    					esc_url( $value ),
    					$key['title'],
    					( !of_get_option( 'social_newtab', '0' ) ? '' : ' target="_blank"' ),
    					$key['icon']
    				);

    I hope you can see the differences. This needs to be amended in your functions.php file within Quark. It may be a problem that I created myself, because I wanted an RSS icon, and a Podcast icon, but you can no longer rely on all the fontawesome icons being the same class – some are fas and some are fab.

    • This reply was modified 5 years, 3 months ago by Paul Taylor.

    It should be the other way around. Gutenberg should be an opt-in, by a plugin, for those who (for reasons that escape me) want to use it. Meanwhile, the majority of developers could just keep using the current editor.

    Thread Starter Paul Taylor

    (@pftaylor61)

    I solved it myself. It was an odd problem. I decativated every plugin. Then activated your plugin first. Then I reactivated every other plugin, and everything worked.

    Is there going to be an answer to this query? Where is the Assignment Add-in?

    Where is the assignment plugin now.n Is it updated yet?

    When I click the link that you provide above, it goes to an error page – and there does not appear to be a search engine on the Thimpress site. Where do I find this Assignment add-in; it is essential for the type of course I am creating – the existing Quizzes and questions simply do not cut the mustard.

    Thread Starter Paul Taylor

    (@pftaylor61)

    Thanks for resolving this. The latest upgrade seems to correct the issue, in any case.

    Thread Starter Paul Taylor

    (@pftaylor61)

    This is perfect.

    I wrapped this all up in a function, and put it in the functions.php of my child theme, and then put a call to the function in the header.php.

    Thank you very much for your time – I appreciate it.

    Thread Starter Paul Taylor

    (@pftaylor61)

    Let’s try doing the code properly this time!

    <p><strong>Latest News: </strong><a href="
    <?php echo {url here}; ?>
    ">
    <?php echo {post heading here}; ?>
    </a>
    </p>

    I am having the same problem. Actually, the pdf version includes no images at all, but the normal print version works perfectly.

    Forum: Plugins
    In reply to: [Image Widget] Image Widget
    Thread Starter Paul Taylor

    (@pftaylor61)

    There is no doubt, looking at other messages here, that I seem to be the only person having this problem. I will have to look at whether or not I have an error in my set-up of WP3.5.

    Meanwhile, at least it has forced me to return to plugin writing, which is fun and good exercise for the brain.

    Forum: Plugins
    In reply to: [Image Widget] Image Widget
    Thread Starter Paul Taylor

    (@pftaylor61)

    I appreciate the thought. as you might expect, I have already attempted manual upgrading. The same effect happens, when I attempt to activate the plugin. However, this effect does not happen with the previous version of your plugin, which actually works fine with WP 3.5.1. So I have returned to using the previous version, and ignoring the update messages, for my clients’ sites. For my own sites, I have written my own plugin.

    Thanks again.

    Forum: Plugins
    In reply to: [Image Widget] Image Widget
    Thread Starter Paul Taylor

    (@pftaylor61)

    No error messages. It simply refuses to update. The update section of the admin page just goes blank, as one tries to update.

    I tried updating by uploading the zip file manually. However, when I attempted to activate the plugin, the same thing happened.

    I have not seen effect this with any other plugin.

    Forum: Hacks
    In reply to: General top level admin menu
    Thread Starter Paul Taylor

    (@pftaylor61)

    Unfortunately, this did not work. It simply added a second top level menu with the same menu_slug, and placed both plugins menus against both the top level menus. I’ll have to look again. I need it to know if the top level menu has been produced by another.

    Forum: Hacks
    In reply to: General top level admin menu
    Thread Starter Paul Taylor

    (@pftaylor61)

    The first step has worked. I declared the top level menu, by using:

    if (!isset($glob_tlm)) {

    where $glob_tlm will contain the menu-slug of the top level menu.

    Now I need to put the same functions in the class for one of my other plugins, and then attempt to install it. I’ll post another comment if it works!

    Thanks for the help.

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