Tagged: ismael
-
AuthorPosts
-
April 22, 2017 at 2:25 pm #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 MargretheApril 22, 2017 at 5:34 pm #781711Hey 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,
MikeApril 23, 2017 at 11:24 pm #782086I 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…April 23, 2017 at 11:43 pm #782095Hi,
I use https://postimage.io/ and copy the “Thumbnail for website” link code to paste in the post.Best regards,
MikeApril 23, 2017 at 11:56 pm #782096Like 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]
April 24, 2017 at 12:02 am #782098<br/><br/>
<br/><br/>
<br />upload image online free<br />- This reply was modified 7 years, 7 months ago by emfutte.
April 25, 2017 at 11:09 am #782737DId this help in anyway?
April 27, 2017 at 8:15 am #783852Hi,
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,
IsmaelApril 27, 2017 at 4:42 pm #784104That made my site break. Line 723 is in the middle of a comment
April 27, 2017 at 4:49 pm #784106I 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 7 years, 7 months ago by emfutte.
April 28, 2017 at 10:30 am #784386Hey!
Please copy the code directly from the forum, not from your mail and place it below the “avia_portfoliobox” class.
Cheers!
IsmaelMay 3, 2017 at 11:48 am #787037I 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
May 4, 2017 at 4:40 am #787554Hi,
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,
IsmaelMay 5, 2017 at 1:31 pm #788373I 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 MargretheMay 6, 2017 at 12:07 pm #788783Hi,
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 7 years, 6 months ago by Ismael.
May 9, 2017 at 8:20 am #790064Thank 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.May 9, 2017 at 9:37 am #790101Hi emfutte,
Yes, you can remove the photos in widgets. May we know which widgets you would like to do this for?
Best regards,
SarahMay 9, 2017 at 10:26 am #790113All the enfold-widgets. Please
May 9, 2017 at 10:36 am #790119Hi,
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,
SarahMay 9, 2017 at 11:02 am #790132That last code, was exactly what I needed. Thak you very much!
May 9, 2017 at 12:47 pm #790210You’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
-
AuthorPosts
- The topic ‘The event calender widget customization’ is closed to new replies.