Single Layout Conditional logic

Hi I am very new to wordpress (and themeco). I have other web dev experience.

I want to understand where is single.php (layout) is sitting if file structure and if i have to make conditinal login in single layout like open model if (condition) should i be using child theme . In that case should i create single.php in child theme.

thanks for understanding
S

Hi Ajay,

Thanks for reaching out.
It is not very clear what exactly you are trying to achieve here. To help you with this, please elaborate a bit more.

Thanks

Hi tristup ,

to start with i want to know if how would i build single and archive layout in child theme using cornerstone?
I can copy wp-single.php into child theme folder. But i want to know if i can design this single layout using cornerstone builder?

AS

Hello Ajay,

Since you are a Pro theme user you don’t need to copy the single.php file to the child theme, you can use the Layout builder the create the custom layout of the archive and single post layout. In case you have not seen the doc of the layout builder please have a look at it to learn more about how to create a custom layout.



You can check the video tutorial as well.


Hope it helps
Thanks

Thanks Prakash.
second question would, how do i achieve this

i want to show a href link or text based on condition like user data. Is this done using condition login in customize?

Also onclick i need to show a modal. Is this to be acheived by adding on page javascript ?

just to clarify the best practice.

Regards
ajay

Hello Ajay,

You can check out this documentation to know all the possible conditions that you can use for the layout that you are trying to achieve:

We also have a Modal element that you can where you can display any content in the modal.

So that we will have a clear idea of what you are trying to do, we highly recommend that you provide us with some illustration, mock layout or simply step by step process of the login page that you are about to create.

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.