I have designed a custom wordpress website. After publishing a custom post I see the design is broken. After checking inspect element, I saw element is automatically generating and its breaking my design. I don't know how and from where its coming. Can anyone help me to figure out this issue.
Thanks,
Gazi
I have fixed the issue. I made a custom function for an excerpt. That was the issue. I didn't stripe the html tags. So, it was generating tag.
Related
Hello guys, is there any way to remove the highlighted (meta, date, author and title) when being shared on Facebook? It looks awful and redundant. I tried several plugins, but it also removes the meta on the page which looks really weird and unnecessary.
I just wanted to remove this when I'm sharing it on facebook/social media.
I'm using the Twenty Seventeen Theme by the way. TIA!
Facebook uses something called the Open Graph Protocol to determine what to display when a website is shared. Basically what it is is a set of meta tags you can add to your HTML head to tell Facebook what to show. If you don't have those meta tags in place, it will try to guess, and sometimes it does a bad job, as you are seeing here.
There are a number of plugins out there that can help give you better control over what Facebook shows by setting up the right meta tags for you. Twitter has it's own set of meta tags it uses so I'd try a plugin that handles multiple services. I'd recommend trying out Yoast. It does much more than social media meta tags, but the SEO tools it gives you are pretty great too.
I had created a custom page-Contact.php file to use as the template for the contact page of my website.
When adding short code (or any text at all) to the WordPress editor in my WordPress admin section, no updates were being made to the html after inspection of the source.
I solved my own problem, but it was a little tough for me as a beginner to find the answer so I'll post it again in hopes of helping someone else.
Add the loop!
All pages need a loop in order to display any info/changes from the visual editor.
I am making my first custom WordPress theme and i ran into my first big wall.
I have different content. I have videos and articles and photos. I need to display these pages differently.
Should i just add a category and display them differently that way? i think this is easy but i am having trouble Googling this problem.
You can create custom template for each page and then set them according to your requirement.
Reference Link
Example Link
this may help :
Creating_Your_Own_Page_Templates
wordpress custome Pages
I'm creating a webpage using wordpress. I wanna insert some element in the form as hidden but the comment tag is not working. the wordpress is putting the comment tag within a 'p' tag.I used all methods of commenting.It is not working.
Can anyone tell me how to insert comments in a webpage using wordpress?
thanks i advance.
I take it you are trying to build a form using the add/edit page screen in wp-admin i.e. wp-admin/post-new.php?post_type=page? If so, you might never succeed in your endeavour, but I would give it a try using tinymce-advanced plugin, as you can turn a lot of the filtering of your source code off, and this might solve the problem. Try it, if not let me know and I will tell you how to manually add functionality to stop Wordpress from messing with html code in wp-admin text editor.
I recently started developing websites on wordpress. I have this problem with tinymce editor. When i write post and format content it looks how I want in it. But when I publish post and check that it looks really crappy.Then I called the stylesheet of tinymce editor on everypage of website. I must say there is change but it still looks bad.
How can I get content in exact formatted way as I see in the tinyMCE?
Thanks,
kiran
On the frontend the styles from your theme will be taking precedence over the layout and sizing of content.
In the administration section it will be using a default TinyMCE editor css file. This allows for Wordpress to easily support a variety of themes without making many changes.
So that leaves you with the potential inconsistency, which you have identified here.
Either you work with the WYSIWYG editor giving you an approximation or you could add the relevant styles from your theme to the editors CSS. This can be done using add_editor_style() DOCs.
Use this WordPress plugin to solve your problem.
Specific CSS/JS for Posts and Pages