How to fix a element

on Sunday 11 August 2019
comments: 0

Problem:  URL on 4 Coloured boxes doesn't work. 

Steps (general steps for any problem with elements):

1. find used keys 

- check options setting (mode) - for MindFeatures elements is mindfeatures, so you will look for the file with this name

- check template setting - default template key is mindfeatures.

You can get that information directly from shortcode:

{ELEMENTS: mode=mindfeatures&template=mindfeatures}

The mode value is code value (the unique name for the group of data). More elements can use the same option settings (if they use the same fields). 

2. open option file

- the path is always your theme folders/elements/options_mode.php, so in this case it's openmind/elements/options_mindfeatures.php

- check the name of needed fields, in this case, it is item_button and item_url  

Note: We try to use the same names for similar fields in  (section_ for header, item_ for items) but there could be older elements sometimes with different keys.

All used (editable) fields have key inuse as true, so there could be more fields but you don't see them in the admin area because they are not used (it saves time with developing new elements or their reusing with new theme)

It's good practice to insert relevant shortcode to the title, so you can copy shortcode directly from admin area. 

38

3. open template file

it uses standard template path (theme folder/templates/jmelements/)

find mindfeatures keys

Problem is there we forgot there hardcoded code and nobody noticed this until now.

<a href="#" class="btn btn-success pull-right">Read more</a>

Just replace this line with relevant shortcodes

<a href="{ITEM_URL}" class="btn btn-success pull-right">{ITEM_BUTTON}</a>

and it's fixed.

This will be fixed in the next release of OpenMind theme.

 

0 Comments

Latest Downloads

JM Download plugin 1.2
in Category: JM Download plugin

JM Download plugin 1.2

2 weeks ago

Plugin for extending the core Download plugin. Version 1.3 on Github Replaced JM_Download plugin, Latest Releases by Father Barry,  Top Downloads menu by SecretR, AACGC Download Tracker by M@CH!N3 V 
Read more..

JM Download plugin 1.2
JM Core plugin 1.6.0
in Category: e107 plugins

JM Core plugin 1.6.0

1 month ago

The version used on this site. It fixes some core limitation via the plugin, no core changes. Check Readme at first.  Version 1.6.1 on github What is inside? - fix for missing titles in the m 
Read more..

JM Core plugin 1.6.0
ReCaptcha plugin 1.3
in Category: ReCaptcha plugin

ReCaptcha plugin 1.3

1 month ago

No CAPTCHA reCAPTCHA Captcha replacement for e107 v2.2 or higher with shortcodes.  Added shortcodes for replacing contact secure image shortcodes. Possibility to hide it from logged users.
Read more..

ReCaptcha plugin 1.3