Hello @judygordon,
Were you trying to align the menu items to the center of the header, as that’s what the CSS code is supposed to do?
I recommend looking for a section inside the WordPress Admin dashboard that allows you to add code to the site’s footer. The #mega-menu-wrap-rt-theme-main-navigation #mega-menu-rt-theme-main-navigation{ text-align:center !important; } seems like it may have been added to such a section. That explains why it appears on every page. I wonder whether this code might be in your functions.php file?
If not, I noticed that your site uses the RT-Theme 18. The code on your site’s footer is part of the theme’s styles. This code styles the WP Mega Menu Plugin: https://ww.wp.xz.cn/plugins/wp-megamenu/.
If you use a commercial theme like RT-Theme 18 and need support, please go to their official support channel. In order to be good stewards of the WordPress community, and encourage innovation and progress, we feel it’s important to direct people to those official locations. You can find support for it here: https://themeforest.net/item/rttheme-18-responsive-wordpress-theme/7200532/support.
Thank you greatly for your reply, Niall.
Yes, I figured that’s what it is. But I just can’t find the path that leads to where this code is written… I believe it’s not in the functions.php file since I don’t know php so I couldn’t possibly have written it there. But I might have written it somewhere else… I just can’t find it!
In any case, I’ll try to reach the theme support, as you suggest.
Thanks a lot!
OMG! I just found it! And deleted it! And now everything looks perfect! Thanks again!!!
-
This reply was modified 5 years, 8 months ago by
JudyGordon.
You’re welcome, Judy! Glad you managed to fix it!