caterhamcomputing
Forum Replies Created
-
Forum: Plugins
In reply to: [CC Child Pages] link_titles and link_thumbs not workingHi.
I am not aware of there being any problems with linking titles or thumbnails, or with the sizing of thumbnails … these features can be seen working with the latest version of the plugin at http://ccchildpages.ccplugins.co.uk/
One thing that I notice in the shortcode you pasted is that you are using incorrect quote characters for the link_title, thumbs and link_thumbs parameters:
[child_pages id="19" cols="2" hide_more="true" link_titles=”true” thumbs=”thumbnail” link_thumbs=”true”]… I suspect that if you use the standard double quote things will work as expected.
Forum: Plugins
In reply to: [CC Child Pages] Disabling widgetGlad that you got it sorted, and thank you for using the plugin.
Forum: Plugins
In reply to: [CC Child Pages] Word limit on child page displaysSorry not to have replied sooner … I’ve not been in the office very much recently.
I did look a few times, but was just getting the holding page from your host and so couldn’t look at the output for the page.
My suspicion was that some other plugin may have been adding content (adverts, etc.) to the page output used to generate the excerpt … in which case, specifying custom excerpts for each page may have been an option.
Today I am pleased to see that the page is appearing as expected … can you let me know what changes you made, in case there is anything I need to correct in my code.
All the best … Tim
Forum: Plugins
In reply to: [CC Child Pages] Disabling widgetHi.
I am not quite sure what you are asking here …
The widget is not automatically inserted, for it to appear in a sidebar it would have to have been placed there at some point.
If you have it in a sidebar and want to remove it, it should just be a case of doing so from the Widgets section of the dashboard.
Forum: Plugins
In reply to: [CC Child Pages] Word limit on child page displaysHi.
If you are using
[child_pages words="10"], you should certainly only be seeing 10 words …Can you copy and paste the shortcode and all the parameters you are using exactly as it appears in your editor?
Also, if you have used any of the hooks/actions, please let me know.
(N.B. I notice that you seem to have taken the site down, so it is hard to tell exactly what is going on ….)
Forum: Plugins
In reply to: [CC Child Pages] Child pages in page template code snippetHi. There are not specific functions for including in page templates, but using the
do_shortcodefunction (see https://developer.ww.wp.xz.cn/reference/functions/do_shortcode/) and passing the appropriate shortcode as a string should do the trick:e.g.
do_shortcode('[child_pages link_titles="true"]');Forum: Plugins
In reply to: [CC Child Pages] Changing the active class color for child menu pages titleHi.
Sorry not to have replied sooner, but I have not been around for a while.
I will be adding some extra classes to the output of the shortcode when time permits (see https://ww.wp.xz.cn/support/topic/css-hook-for-current-page?replies=2), which should make it easier to style as you describe.
Forum: Plugins
In reply to: [CC Child Pages] Show all children and grandchildren with thumbnailsHi. Sorry not to have replied sooner, but I have not been around for a little while.
There is currently no depth parameter for displaying child pages from the shortcode.
In your scenario, how would you organise the output to show the hierarchy of the pages?
You can use the
ccchildpages_query_argsfilter to amend/add/remove the arguments passed to WP_Query (https://codex.ww.wp.xz.cn/Class_Reference/WP_Query) … you should be able to setdepthto 0 to show all children and grandchildren. (Note that this would not show any hierarchy …)e.g. add the following to the
functions.phpof your theme …function custom_ccchildpages_query_args($args, $a) { $args['depth'] = 0; return $args; } add_filter( 'ccchildpages_query_args' ,'custom_ccchildpages_query_args', 10, 2 );(This is untested code due to lack of time …
$argscontains the WP_Query arguments to be used,$acontains the arguments passed to the shortcode.)Forum: Plugins
In reply to: [CC Child Pages] default # of children and 'Load More' ajax buttonHi. Sorry not to have replied sooner, but I have not been around for a while.
The plugin does not have any AJAX functionality built into it, and it is not something that I am looking to add at present.
There are plenty of filters/hooks within the plugin that allow you to modify the query – so it should be possible to achieve the effect you are after by creating some JavaScript and adding some custom filters for the plugin.
Forum: Plugins
In reply to: [CC Child Pages] Assistance PleaseHi … sorry for not replying sooner but I haven’t been around for a while.
This could certainly be achieved by adding some CSS and/or JavaScript code to the theme. (The widget generates output similar to the native Pages widget, so plugins to add functionality to that may also work for the CC Child Pages widget.)
When I have a bit more free time, I’ll see if I can work up an example.
Forum: Plugins
In reply to: [CC Child Pages] Possible to Display Date?Hi Joelle
Sorry not to have replied sooner, but I’ve not been around for a while.
This is a great idea and I’ll look at adding it to the next release … the plugin was originally for displaying child pages only, but since I opened it up for custom post types it would make sense to have the option to display the posted/modified dates too.
Forum: Plugins
In reply to: [CC Child Pages] CSS hook for current pageHi Eric … sorry not to have replied sooner but I’ve not been around for a while.
This is a great idea and I’ll certainly look at adding this functionality to the next release, and I will look at adding other CSS hooks for parent, sibling, etc. while I am at it.
Thanks for your input.
Forum: Plugins
In reply to: [CC Child Pages] Double Title DisplayHi.
The title is not added to the excerpt by the plugin … if a custom excerpt is not set up for the page, an excerpt is generated from the page content.
It is possible that you have the page title entered as a heading for the page also. If this is the case, adding a custom excerpt to the page would be the way to avoid displaying the page title within the excerpt.
If you can post a link to the page affected, I can look into this further for you.
Forum: Plugins
In reply to: [CC Child Pages] 'Read more….' font colorI’m pleased that I could help.
A final thought, if you find that the colour is not as you’d expect in certain states (e.g. when you hover over the link), you may also need to apply styles for the pseudo-classes (see http://www.w3schools.com/css/css_pseudo_classes.asp).
For example:
.ccpages_more a:link { color: #169fe6; } .ccpages_more a:visited { color: #169fe6; } .ccpages_more a:hover{ color: #169fe6; } .ccpages_more a:active { color: #169fe6; }I’m glad that you are finding the plugin useful.
Forum: Plugins
In reply to: [CC Child Pages] 'Read more….' font colorYou need to style the link, rather than just the paragraph containing the link … to do this, try:
.ccpages_more a { font-size: 10pt; font-weight: bold; color: #169fe6; }… you may need to add !important after the
color, depending on how your theme is coded. (Also note that you need to usecolorrather thanfont-color).Let me know if this helps.