Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • RenaissanceJames

    (@renaissancejames)

    Sorry ignore that, I thought about it and tried visiting the urls in the browser I use for the admin, this fixed it there and then it appeared on the front of the site.

    Thanks

    RenaissanceJames

    (@renaissancejames)

    Hi, I am experiencing this issue on
    https://www.comptonverney.org.uk/ – translator in the footer

    I have tried the above steps without any change, Chinese has been selected as a language for nearly a year, and is still selected in the admin.

    I also note it doesn’t show the Chinese Flag in the admin for ordering the languages.

    Thanks
    James

    Thread Starter RenaissanceJames

    (@renaissancejames)

    Hi Tom,

    I did manage to work out what I needed to do to override this as the client needed this fixed asap so I deleted the offending code from the Plugin.

    Thread Starter RenaissanceJames

    (@renaissancejames)

    Hi,

    I thought I had responded to this, excellent support and works amazingly, this is just the plugin I’d been searching for.

    Thread Starter RenaissanceJames

    (@renaissancejames)

    I have worked out a way to get this out us get_post_meta and a couple of foreach.

    Included below incase anyone else would like this.

    $array = get_post_meta($post_id, "crp_relations_to");
    			foreach ($array as $row) :
    				foreach ($row as $key => $sub_array) :
    					$keys .= $key . ', ';
    				endforeach;
    			endforeach;
    			echo $keys;
    Thread Starter RenaissanceJames

    (@renaissancejames)

    Hi Brecht,

    Basically I have created 6 different views to display related posts/pages etc. and use shortcode ultimate to create these layouts.

    When someone adds a post/page they can choose the related posts and which layout to use and this then displays, to do this I need it to bring in related posts, I can set it up so that they have a select field and they choose the posts, but what I love about your plugin is that they enter a relationship on one post and it displays on the related post as well.

    Is there a filter in the plugin that can be called already? or would I need to create my own filter?

    Cheers
    James

    Thread Starter RenaissanceJames

    (@renaissancejames)

    For anybody that might be interested in the answer, after you have set the shortcode up, if you change

    orderby=”none”
    to
    orderby=”post__in”

    It will keep them in the order that was entered in the ID box.

    Thread Starter RenaissanceJames

    (@renaissancejames)

    If you replace line 126 with

    $arraypop = array_keys( $fields );
    $arraykey = array_pop( $arraypop );

    This fixes the error.

    Forum: Plugins
    In reply to: [Foodlist] Icon size
    Thread Starter RenaissanceJames

    (@renaissancejames)

    Hey,

    Thanks, I was requiring the wrong file somehow, sleep deprived.

    Cheers for the help, all working and resolved.

    Awesome support.

    Forum: Plugins
    In reply to: [Foodlist] Icon size
    Thread Starter RenaissanceJames

    (@renaissancejames)

    Hi,

    Yes I want to change the tag icon size. But I’d also like to remove the “alignleft” class added to thumbnail images.

    So I thought I’d use your instructions directly to edit this.

    So I followed the instructions of adding a new shortcode as per the post mentioned.

    This is “MenuItemThumbnailShortcode.php” in my theme folder, inside another folder foodlist_ext

    <?php
    
    namespace foodlist_ext;
    
    use Artprima\Text\Shortcode;
    use Artprima\Text\ShortcodeManager;
    use Foodlist\Project\WordPress\Plugin\Foodlist\Manager;
    
    class MenuItemThumbnailShortcode extends Shortcode {
    
        public function getTag()
        {
            return 'menu_item_thumbnail_casa';
        }
    
        public function apply($attrs, $content = null)
        {
            $cur = Manager::getInstance()->get('curitem');
            $postData = $cur->getPostData();
            $id = $postData['id'];
    
            $result = '';
            if (has_post_thumbnail($id)) {
                $result = get_the_post_thumbnail($id, 'fl-menu-item-thumb', array('class' => 'fl-menu-item-thumb'));
            }
    
            return $result;
        }
    
    }

    Adding to my functions.php

    function my_register_thumbnail_shortcode(\Artprima\Text\ShortcodeManager $sm) {
    		$sm->registerShortcode(new \foodlist_ext\MenuItemThumbnailShortcode());
    	}
    	add_action('foodlist_register_menuitem_shortcode', 'my_register_thumbnail_shortcode');

    Now it crashes the menu out, without including the new shortcode on the page.

    Should the PHP be in a different folder? I’m fairly proficient in PHP, but the fact that following your instructions it crashes out seems strange.

    Cheers

    Forum: Plugins
    In reply to: [Foodlist] Icon size
    Thread Starter RenaissanceJames

    (@renaissancejames)

    That doesn’t seem to do anything, I’m not sure if its to do with the fact the images are sized upon uploading at that size, could almost do with it using the full image size rather than a generated size.

    I have also tried adding a short code but that doesn’t seem to do much either, and was trying to keep it simple by using the MenuItemThumbnailShortcode.php and removing the “align left” class, but this just displays my short code, I might be missing a step.

    Where do you save the copied Shortcode.php file?
    Chhers

    Hi there,

    A quick way that you could achieve this is

    .swm_logo_section {
    width:100% !important;
    }

    This puts the logo against the edge of main container and the social icons against the other.
    Is this what you are trying to achieve?

    RenaissanceJames

    (@renaissancejames)

    From what I’ve found with a theme, is that the font is loaded multiple times in the functions.php file, after making this only once, it all works.

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