- This topic has 5 replies, 2 voices, and was last updated 10 years, 3 months ago by
Tom.
-
AuthorPosts
-
December 30, 2014 at 8:59 am #59600
Philippe
Hello Tom,
What Development tools you advise me for creating/edit plugins or theme ?
I use FireBug, Gedit (on linux), FileZilla, Poedit.
I’m beginner on WordPress that I use since one month.
I read your comments:
http://generatepress.com/forums/topic/blog-paging-pagenavi-styles/
It helped me.
How to integrate a style.css in the plugin that I have created by following your instructions ?
I have created a .css file on my package with this code :
.page-numbers { display: none; }
But it not work. For the moment I have modified the style.css of GP child-theme.
http://generatepress.com/api/themes/generatepress_child.zip
On your GP child-theme, you have not integrated of specific code in fonction.php. Your GP child theme works with or without add code… I do not know if it is necessary or not to add :
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_uri(), array( 'parent-style' ) ); }
http://codex.wordpress.org/Child_Themes
Tks by advance
December 30, 2014 at 10:26 am #59633Tom
Lead DeveloperLead DeveloperHi there,
I use all of those, with the addition of Notepad++ for coding.
Your best bet is to just add your CSS to your child theme’s style.css file.
No need for that function to enqueue styles – GP takes care of all of that for you.
December 31, 2014 at 2:48 am #60028Philippe
I found the php editor Geani for linux in French and Gphpedit in English. While both are free 🙂 I love Linux.
If you have time to test Mint 17.1 is much better than Windows except for playing…
1) If I want to run WP-PageNavi without plugin, or do I insert :
add_action('generate_paging_navigation','generate_pagenavi_integration'); function generate_pagenavi_integration() { wp_pagenavi(); }
2) And how so to integrate this fonction in a plugin ?
.page-numbers { display: none; }
Tks
January 1, 2015 at 11:06 am #60544Tom
Lead DeveloperLead DeveloperHi there,
1. Yes, you’ll want to insert this function into your site. You can use a child theme’s functions.php file, or you can a plugin like this: https://wordpress.org/plugins/code-snippets/
2. You can add this code to your child theme’s CSS file, or use the plugin in my signature below.
Hope this helps, and Happy New Year!
January 2, 2015 at 8:01 am #60864Philippe
Thank you so much Tom.
I thought I must edit functions.php, but when I have did this, my website was not working.
Since I have resolved my problem :
http://generatepress.com/forums/topic/small-incompatibility/page/2/#post-60534
All work fine. This trouble made my WP totally unstable.
Thank you again for your kindness and your availability !
January 2, 2015 at 10:27 am #60903Tom
Lead DeveloperLead DeveloperAwesome! I’m glad I could help 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.