In my journey to learn HTML, CSS, and PHP, I took some online courses to gain knowledge. Now, I am venturing into creating a site using Wordpress to further enhance my skills through practical experience.
Recently, I created a page with a custom video field and a custom description field.
https://i.sstatic.net/lMojF.png In the image provided above, you can see that I have hidden all the description text using an HTML details tag named "About."
Upon clicking on "About," this is what I see:
https://i.sstatic.net/OSUux.png
My question is as follows: How can I hide certain elements when others are displayed? My aim is to open the page and only view the text along with a close button. Essentially, I do not want the "menu" link and the "strange magic" title to be visible when the details are open.
I attempted the following CSS code without success:
details[open] .entry-title .menu-toggle{
display: none;
}
Do you have any suggestions or solutions for achieving this effect using CSS?