Home › Forums › Jevelin Theme › help migrate to redux
Home › Forums › Jevelin Theme › help migrate to redux
Hello, dev team. actually i just want to make some simple change like permalink and some layout issue. but, I saw from the documentation that unyson that i used before is deprecated now and javelin recommends me to migrate to the new page builder. I’m not sure how and i’m not sure if it would break my website and required me to build it all over again. Could you help me with this?
Hi there,
Sure, first of all we need to know if you have used Unyson page builder for your pages? Or are you using WPBakery page builder?
Best regards,
Shufflehound team
i think we used unyson page builder… the WPBakery plugin is not active right now… and some pages has a word “unyson” next to it…
hello dev team. Any help?
In this case you can keep using Unyson framework plugin if you didn’t have any issues with it. In future we would recommend to rebuild pages to WPBakery page builder, so you can migrate to Redux framework
The thing is, I want to change some permalink that weirdly changes by itself in the portfolio feature… it looks like “domain.com/portfolio/” and when i choose one of the list, it changes into “domain.com/projects/brands”, which i don’t want it to be…
I forgot to mention that I have some layout issue that I want to fix… could you help me?
Can you please give us a links where we could see your mentioned issues?
Sure, you can check on https://medialogy.id/portfolio/ then click any brands for testing url…
for the layout issue, you can click on the telin’s one or check on this url https://medialogy.id/project/telin/
Also, do i have to close this page? Because I refreshed this page everyday except yesterday and the day before; and i didn’t see your answer before. I’m afraid I will slow you down because of this.
Sorry for our late response.
We checked this and this is how it is set for our theme – portfolio project page link contains project name. But there are ways on how to change it to something else via PHP code or some WordPress plugins.
You can close it if you want to, but there also should be an option for email notifying.
Hi Dev team, Thanks for the response. Could you please explain to me, what should I change? I think I want to avoid using too many plugins.
If you are familiar with PHP language then we can give you a PHP snippet that should change it. You will need to paste it in the child theme functions.php . Would that be ok?
I never use child theme function, but i can try. could you guide me step by step? Thank you.
Sure, the child themes are meant to rewrite parts of the main theme in the way that you can afterwards safely update the main theme without overwriting any changes. We added our child theme in the attachment and you can just install/activate it as any other theme.
Then you can add this PHP snippet in the child theme functions.php file:
add_filter( 'register_post_type_args', 'jevelin_rewrite_slug', 100, 2); function jevelin_rewrite_slug( $args, $post_type ) { if( $post_type == 'fw-portfolio' ) { $args['rewrite']['slug'] = 'portfolio'; } return $args; }
Then go to Settings > Permalinks and press Save Changes.
Now it should be changed.
Hi, Dev team.
the snippets you gave unfortunately not giving the result I want after I put it in functions.php in the child theme.
It still do some effect though. So, when I clicked on one of the brands, it still direct me to the project page and produce the same link which is “domain.com/projects/brands”.
But the navigation buttons inside the project pages are actually referring to the desired link which is “domain.com/portfolio/brands”. Unfortunately the result page is actually my directory files.
Hello dev team,
is there any update regarding this issue?
Hi there,
Sorry for our late response.
We have worked on some other solutions and we might found something, but we would need to access your website dashboard to test it. Would it be possible?
Best regards,
Shufflehound team
Hi Dev team,
Unfortunately, I can’t give access to my site as it is my company’s profile. But, i have made a live server testbed that I created using back-up. The only difference would be that this testbed has newer php version (7.4.27 instead of 7.1.33) and newer MySQL version (10.5.13 instead of 10.3.29).
Could you do your test in the testbed instead and inform me every steps that you take to fix the issue, so I could reproduce it in the live server?
I’ll give you the credential details in the private information field.
Best regards,
Damianus Gemilang
Looks like we managed to fix this issue by improving Jevelin Child theme.
Can you please confirm that? 🙂
Best regards,
Shufflehound team
Hello dev team,
I checked and the desired url is indeed in effect. But, i can’t access dgemilang.site/portfolio with “dgemilang.site redirected you too many times” error; even after clearing cookies.
Then, I tried to open javelin child theme’s function.php and I noticed that there are some new lines added in it. When I tried to remove it(by commenting it), your changes(the desired url) is still in effect. Even if I manually type in the old url(https://dgemilang.site/project/bankmandiri), this link redirect me to https://dgemilang.site/portfolio/bankmandiri and showed me the bankmandiri’s project page.
So, I want to know what changes have you made other than javelin child theme’s function.php?
Best regards,
Damianus Gemilang