related to permalinks in wordpress - wordpress

how i give permalinks to internal links of pages in wordpress
for example
web portal services 24/7 urgent support,
i want to display page name instead of page when user hover the internal link

I'm not sure that I understand your question, but you should first have a look here Permalinks in wordpress codex
If what you want is to simply display text on hover, the text that shows up on hover is in the html Title attribute. For example <a href="link" title="textonhover">
You can place this in the Title attribute to generate it: <?php echo get_the_title(ID) ?>

Related

How can I set a specfic Wordpress page as landing page (but it should keep the permalink)?

I'd like to set the Wordpress page https://hartmannventures.com/success-stories/ as landing page. It should keep the permalink as it is now (/success-stories). Furthermore, the "home" page https://hartmannventures.com/ should keep it's permalink like it is now (/). I tried to set it with the static page settings, but then the "Success Stories"-page turns into the home page (/).
Thanks for your help!
General Settings (I'm afraid of changing something of that)
Reading Settings (Static Page) (That's what didn't work -> Changed it back to Home again)
You need to create a separate template page inside them for that page, with that you no need worry about anything and it will not affect on the home page.
Template Format
<?php /* Template Name: Template name*/ ?>
<?php get_header();?>
HTML
<?php get_footer();?>

How to add the Schema.org markup (generated by the Structured Data Markup Helper) to specific WordPress pages?

I have used the Structured Data Markup Helper and now need to add my mark-up code. Do I add this to the main head section of the website or just the individual page head.
I assume this needs to be added to the specific page head but I'm not sure where to access this. I am using Wordpress and normally add mark-up to the child theme header.php file in my cPanel but this is for all pages.
if(is_page('home')){ ?><!-- home page with slug home
enter your schema code for homepage -->
<?php }
else if(is_page('career')){ ?><!-- career page with slug career
enter your schema code for career-->
<?php }

get the page template unique from the slug in wordpress

Hi i have this page template past conferences single and i have this href tag
<a href="/past-conferences-single/<?php the_slug(); ?>" class="wrapper" style="background-image:url('<?=$url?>')">
and my href link goes this way
past-conference-single/2013-inagural-diversity-abroad-conference-5/
i want that when i click on this page goes to this page template past-conference-single and with the content is dynamic based on the slug.
How will i able to do this?
Any help is muchly appreiciated. TIA

WordPress - Pull In HomePage Title To Any Other Page For Breadcrumb

I have set up a breadcrumb on my site and now due to wanting to integrate WPML into the site, I can no longer leave the homepage breadcrumb with a hard coded name.
Could anyone tell me how I can pull in the title from the front / static page (home page)?
I have the code below:
echo '<li>Home > </li>';
but am not able to find anything in the documentation that explains how to do this.
Thanks for your time and help.
Do you mean home page or front page? Either way, it will be a variation of get_options.
Check the codex.
Get the Front Page ID: https://codex.wordpress.org/Function_Reference/get_option#Parameters
Get a page title by ID: https://codex.wordpress.org/Function_Reference/get_the_title
Front Page
echo '<li>Home'.get_the_title(get_option('page_on_front')).'</li>';
Blog Page
echo '<li>Home'.get_the_title(get_option('page_for_posts')).'</li>';

Different inside v home page in custom Wordpress theme

I want to use a different header style for the home page than for inside pages of my site. Specifically, I want the header section to be less tall on the inside pages. Should I use a different header.php file for the home page? If so, how?
I'm having a hard time getting ideas using Google, so if anyone has a helpful link to the appropriate resource that'd be great.
WordPress has a home page boolean function is_front_page() (true if is front page otherwise false)
Add a class to the header/body/whatever parent so
<header class="header<?php if(is_front_page()){ ?> home_header<?php } ?>">
</header>
and simply reference the class in CSS.
WordPress codex reference

Resources