Custom Circles order
-
Hello everyone,
I’ve made the custom circles on my home page but they do not appear as my Menu. It’s important for me to have a strict order of the pages.
I am wondering how to change the order of the custom circles? I tried to create a special menu for them but it didn’t work out. Also, I tried to give order per page but it doesn’t work out as well.
Website: https://www.girlsxchlamydia.nl/
Thanks!
Xeniya
-
I’ve made the custom circles on my home page but they do not appear as my Menu.
What do you mean by “custom circles” and “menu”, for clarification?
I followed your Guide: Create custom circles on the Home page] and created custom circles on the Home page which direct to other pages when you click on them.
However, I’ve still the menu navigation.bar on the right top corner so the visitor can easily go to another page.
The custom circles (pages) on the Home page appear in different order than navigation menu. I would like to change that and put them in the order that I need.
I see, I’ll look at implementing this too.
If you need a quick fix for now you could re-order your navigation menu in the dashboard under Appearance > Menus. If you don’t have a custom menu there you can create one with the order you want.
https://codex.www.ads-software.com/Appearance_Menus_ScreenI made a mistake in Stage 6 – Coding and have amended it on the guide.
If you want to amend that for yourself you can follow this:
- Copy “index.php” from the Spun Theme
- Paste it into your Child Theme directory
- Edit that “index.php” file now within your Child Theme directory
- Replace all of its code with the code from this PasteBin page: https://pastebin.com/kZZsZ3SA
- Save that file
- Create a new file called “content-custom-circles.php” in your Child Theme directory
- Edit your “content-custom-circles.php” file and put into it all of the code from this PasteBin page: https://pastebin.com/PDmBtvgC
- Save that file
- Remove your “content-home.php” file that’s within your Child theme directory
Although that won’t directly relate to your re-ordering question, it’ll help me provide a solution as we’ll have the same code.
To re-order the Custom Circles you’ll need to do 3 more stages:
- Stage 1 – Creating a new Custom Field
- Stage 2 – Adding files and folders
- Stage 3 – Coding
Stage 1 – Creating a new Custom Field
- Go to the “Custom Content Types” section of the dashboard: https://snag.gy/yAOan.jpg
- Go to the “Custom Fields” part: https://snag.gy/Q9dXy.jpg
- Click on the “Create Custom Fields” button: https://snag.gy/PO7Qi.jpg
- Scroll down and select the “Text” field: https://snag.gy/CBzlj.jpg
- In “Label” enter “Order”
- In “Name” enter “order”
- In the “Validation Rule” dropdown list under “Validation select “Number”
- Tick the “custom_circles” checkbox underneath the “Associations” section
- Save: https://snag.gy/URiBy.jpg
Now edit your Custom Circle: https://snag.gy/sR59E.jpg
And there you’ll see your “Order” field, in which you can enter the order you want the circle to appear: https://snag.gy/3lVMK.jpgStage 2 – Adding files and folders
Add the following to your Child Theme directory:- A “functions.php” file
- A “js” folder
- In that “js” folder create a file called “reorder-custom-circles.js”
Stage 3 – Coding
Then enter into those files:- In your Child Theme “functions.php” file add all of the code from this PasteBin page: https://pastebin.com/FMTwcBk4
- In your Child Theme “reorder-custom-circles.js” file add the code from this PasteBin page: https://pastebin.com/5uwjAPy8
- In your Child Theme “content-custom-circles.php” file replace all of the code with the code from this PasteBin page: https://pastebin.com/c8jrMkCa
Hello Andrew,
Thanks for the help but now I have my recent posts on the Home page as well. I don’t want them to appear there ?? How to remove them from there? The page for my recent posts is News subpage under Action page.
If I create the Home page and change Settings – Reading – Front page displas from latest post to static then Custom circles move to News page and Home page is empty.
Also, I gave the order to custom circles but they appeared in the reverse way. So number 5 is 1st right now. I can solve it out by myself but just want to mention it ??
Last thing, the text (titles) don’t appear in the circles anymore.
Also, I gave the order to custom circles but they appeared in the reverse way. So number 5 is 1st right now. I can solve it out by myself but just want to mention it ??
Make sure your “content-custom-circles.php” file has all and only the code of this PasteBin page: https://pastebin.com/c8jrMkCa
Make sure your “content-custom-circles.php” file has all and only the code of this PasteBin page: https://pastebin.com/c8jrMkCa
It has only the code from that PasteBin page but still the News page which should 5th is the 1st right now.
What about other questions? Is it possible to solve them out?
Can you create new threads to discuss your other issues?
Sure
I think this is because I told you to remove the “content-home.php” file from your Child Theme.
I’m guessing you originally had followed this guide: https://www.ads-software.com/support/topic/put-test-inside-images-on-home-page?replies=3 – had you?
had you?
Assuming “Yes”:
You need to recreate that “content-home.php” file in your Child Theme directory and put all of this code into it: https://pastebin.com/5PzrWLC2#Did it. Didn’t help. Still the same problem
Can you replace all of the code in your content-custom-circles.php file with the code in this PasteBin page: https://pastebin.com/zUeDEfGx
Then:
- In your “js” folder of your Child Theme create a new file called “text-in-circles.js”.
- Into that “text-in-circles.js” file add the code from this PasteBin page: https://pastebin.com/knH83C5e
- In your Child Theme functions.php file just after this line:
add_action( 'wp_enqueue_scripts', 'enqueueReorderCustomCircles' );
Add the following code:
function textInCircles() { wp_enqueue_script( 'text-in-circles', get_stylesheet_directory_uri() . '/js/text-in-circles.js', '', '1.0', true ); } add_action( 'wp_enqueue_scripts', 'textInCircles' );
- The topic ‘Custom Circles order’ is closed to new replies.