Tagged: 

Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #781677

    I have installed The event Calendar from Modern Tribe.

    On my frontpage I want to show “upcomming events”, besides the “newest post” but the styling is so ugly (sorry)
    I would love to be able to style it, in the same way as the other two widgets on my frontpage. And also style it that way, then I use the widget in a sidebare area on my page.
    Can you guide me?
    I am pasting a link to my frontpage and to a page having the widget on a sidebar.
    I really have read and read and read… but nothing makes sence!
    Regards
    Ellen Margrethe

    #781711

    Hey emfutte,
    Could you please put the two widgets next to each other the way you want them and I will try to style them the same. Also please take a screenshot of them and let me know which is which, I tried to translate but I still wasn’t sure.

    Best regards,
    Mike

    #782086

    I would love to provide you with all the information you need. Could you start telling me how I attach my sreenshot here?
    I see the img above, but my picture is stored on my local computer…

    #782095

    Hi,
    I use https://postimage.io/ and copy the “Thumbnail for website” link code to paste in the post.

    Best regards,
    Mike

    #782096

    Like this
    [url=https://postimg.org/image/ylz6a89kd/][img]https://s14.postimg.org/ylz6a89kd/screenshot_forside.png[/img][/url]

    [url=https://postimg.org/image/8exze9ral/][img]https://s14.postimg.org/8exze9ral/WIDGET_AREA.png[/img][/url]

    #782098

    screenshot forside<br/><br/>
    WIDGET AREA<br/><br/>
    <br />upload image online free<br />

    • This reply was modified 6 years, 11 months ago by emfutte.
    #782737

    DId this help in anyway?

    #783852

    Hi,

    I’m sorry but we have no control over the plugin’s widget. If you want, you can create a new widget in the framework > php > class-framework-widgets.php file. Go to line 723, below add this code.

    if (!class_exists('avia_upcomingbox'))
    {
    	class avia_upcomingbox extends avia_newsbox
    	{
    		function __construct()
    		{
    			$this->avia_term = 'tribe_events_cat';
    			$this->avia_post_type = 'tribe_events';
    			$this->avia_new_query = ''; //set a custom query here
    
    			$widget_ops = array('classname' => 'newsbox', 'description' => __('A Sidebar widget to display upcoming events in your sidebar', 'avia_framework') );
    
    			WP_Widget::__construct( 'upcomingbox', THEMENAME.' Upcoming Events', $widget_ops );
    		}
    	}
    }
    
    register_widget( 'avia_upcomingbox' )

    Go to the Appearance > Widgets area and insert the Enfold Upcoming Events widget.

    Best regards,
    Ismael

    #784104

    That made my site break. Line 723 is in the middle of a comment

    #784106

    I tried to pas the whole file here, but got kind of LONG – could you explain to me, where to past the code, so it wont break my site.

    • This reply was modified 6 years, 11 months ago by emfutte.
    #784386

    Hey!

    Please copy the code directly from the forum, not from your mail and place it below the “avia_portfoliobox” class.

    Cheers!
    Ismael

    #787037

    I still get this, when I put in the code, and my site breaks.

    Parse error: syntax error, unexpected ‘if’ (T_IF) in /customers/9/1/6/midtmors.dk/httpd.www/wp-content/themes/enfold/framework/php/class-framework-widgets.php on line 747

    #787554

    Hi,

    I have the same code in the same file but I don’t get the error so you’re probably doing it wrong. Again, please copy the code directly from this forum, not from your email. Or post the FTP details here so that we can add it.

    Best regards,
    Ismael

    #788373

    I do not get any e-mail, so that can not be where I make the mistake.
    The error I get, is not even in a line in the new code, but later on.
    Please help me, doing it for me.
    I put the information you need in the private Content box.
    Regards
    Ellen Margrethe

    #788783

    Hi,

    We added the code in the parent theme’s framework > php > class-framework-widgets.php file. Unfortunately, you can’t do this modification in a child theme. Please check if the Latest Events Widget is available in the Appearance > Widgets panel or post the WP login details so that we can check it.

    NOTE: We forgot to put a closing tag, that’s why you see the error. Sorry about that.

    Best regards,
    Ismael

    • This reply was modified 6 years, 10 months ago by Ismael.
    #790064

    Thank you very much, I was sure, I was doing it right, the first time, but I’m not that familiar with the coding.
    The widget is there now, and it looks very nice. I just have one more request about the widgets. It goes for alle the enfold-widgets, I’m using. Can I get rid of the picture, so I only display text? Hope you understand.

    #790101

    Hi emfutte,

    Yes, you can remove the photos in widgets. May we know which widgets you would like to do this for?

    Best regards,
    Sarah

    #790113

    All the enfold-widgets. Please

    #790119

    Hi,

    Okay. If you would like to remove just the image, please use this code in Quick CSS:

    .attachment-widget.wp-post-image {display:none !important; }

    If you try it, you’ll see that the image is removed, but the box that contains it still remains. If you would like to remove the box and the space it takes up, please use this code instead:

    .widget .news-thumb {display:none !important; }

    Is this the solution you’re looking for?

    Best regards,
    Sarah

    #790132

    That last code, was exactly what I needed. Thak you very much!

    #790210

    You’re welcome. We’re glad we could help.

    I’ll close this thread now. If you have any other questions, feel free to open another thread, and we’ll be happy to try to help you.

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/

    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/

    Thank you for using Enfold.

    Sarah

Viewing 21 posts - 1 through 21 (of 21 total)
  • The topic ‘The event calender widget customization’ is closed to new replies.