- This topic has 6 replies, 2 voices, and was last updated 6 years, 3 months ago by
Steve.
-
AuthorPosts
-
-
October 22, 2015 at 11:30 am #4694
lunatikzxMemberI cant see the form in my piklist widget.
I used the tutorial ( easy widget) to create it
I joined the file structure
Anyone can help?
-
October 22, 2015 at 12:30 pm #4696
lunatikzxMemberEdit since the file did not uploaded :
symposium.php in the folder piklist/parts/widgets
<?phppiklist(‘field’, array(
‘type’ => ‘text’
,’field’ => ‘titre_text’
,’label’ => ‘Title’
,’description’ => ‘C\’est le titre a appliquer’
,’value’ => ‘text’
,’attributes’ => array(
‘class’ => ‘widget-content’
)
));piklist(‘field’, array(
‘type’ => ‘text’
,’field’ => ‘class_text’
,’label’ => ‘Css class’
,’description’ => ‘Classe a appliquer’
,’value’ => ‘text’
,’attributes’ => array(
‘class’ => ‘widget-content’
)
));piklist(‘field’, array(
‘type’ => ‘textarea’
,’field’ => ‘contenu_text’
,’label’ => ‘Texte du widget’
,’description’ => ‘Ceci est le text principal du widget’
,’attributes’ => array(
‘class’ => ‘widget-content’
)
));symposium-form.php in piklist/parts/settings
<?php
/*
Title: Symposium
Description: Un text widget avec une classe
*/
?>
<?php echo $before_widget; ?><?php echo $before_title; ?>
<?php echo $settings[‘titre_text’]; ?>
<?php echo $after_title; ?>
<?php echo $settings[‘class_text’]; ?>
<?php echo $settings[‘contenu_text’]; ?>
<?php echo $after_widget; ?>
-
October 22, 2015 at 1:52 pm #4697
SteveKeymaster@lunatikzx– Welcome to the Piklist community!
It looks like your putting symposium-form.php in piklist/parts/settings. Both files go in your widgets/ folder.
Also, just to be clear, you shouldn’t be placing any files inside the main piklist/ folder. That also means no files in piklist/parts/settings or piklist/parts/widgets.
You either need to put your files in your theme or create a Piklist plugin.
Let us know if you need any help.
-
October 22, 2015 at 3:14 pm #4700
lunatikzxMemberThis is what i get in wordpress wen i put both files in the widgets folder
Warning: fopen(/home/dompteur/public_html/***/wp-content/themes/********/piklist/parts/settings/symposium-widget-form.php): failed to open stream: Aucun fichier ou répertoire de ce type in /home/dompteur/public_html/symposium/wp-includes/functions.php on line 4305
Warning: fread() expects parameter 1 to be resource, boolean given in /home/***/public_html/*******/wp-includes/functions.php on line 4308
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/***/public_html/*******/wp-includes/functions.php on line 4311
-
October 22, 2015 at 3:38 pm #4701
SteveKeymasterWhich version of Piklist are you running?
Also, this error is saying there’s still a widget file in settings/
Warning: fopen(/home/dompteur/public_html/***/wp-content/themes/********/piklist/parts/settings/symposium-widget-form.php -
October 22, 2015 at 3:43 pm #4702
lunatikzxMemberSuperb this was a sync problem in the end … thanks
Btw your plugin is awesome ill give it 5 stars! -
October 22, 2015 at 3:59 pm #4703
SteveKeymasterAwesome! Closing the ticket.
-
-
AuthorPosts
- The topic ‘Widget fields not showing’ is closed to new replies.